How to ignore code tag contents with html-minifier-terser

111 Views Asked by At

The problem happens when I use text editor on admin part of website with enabled prerender mode. html-minifier-terser dies when it meets contents of <.code> tag

What could be a workaround for this?

1

There are 1 best solutions below

0
Daniel On

ignoreCustomFragments: [ /<code>(.|\n)*?<\/code>/ ],

did the trick