parcel-plugin-change-file
parcel-plugin-change-file copied to clipboard
Issues with parcel build when minifying
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
then I get
<!DOCTYPE html><html> <body> </body> </html>
But running 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:
{
"removeComments": false
}