Open Jbcampbe opened 6 years ago
I can't get this plugin to work when minification is turned on. For example if I have.
<!DOCTYPE html> <html> <body> <!--[ <script type="text/javascript" src="cordova.js"></script> ]--> </body> </html>
and run parcel build index.html
parcel build index.html
then I get
<!DOCTYPE html><html> <body> </body> </html>
But running parcel build index.html --no-minify
parcel build index.html --no-minify
gives me the desired output.
<!DOCTYPE html> <html> <body> <script type="text/javascript" src="cordova.js"></script> </body> </html>
Hi @Jbcampbe I came across the same issue, It can be avoided by creating a .htmlnanorc file:
.htmlnanorc
{ "removeComments": false }
I can't get this plugin to work when minification is turned on. For example if I have.
and run
parcel build index.html
then I get
But running
parcel build index.html --no-minify
gives me the desired output.