Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with parcel build when minifying #2

Open
Jbcampbe opened this issue Oct 31, 2018 · 1 comment
Open

Issues with parcel build when minifying #2

Jbcampbe opened this issue Oct 31, 2018 · 1 comment

Comments

@Jbcampbe
Copy link

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>
@alterebro
Copy link

Hi @Jbcampbe I came across the same issue, It can be avoided by creating a .htmlnanorc file:

{
  "removeComments": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants