We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As everyone knows, the order of scripts is important, so I do not think setting mergeScripts true is "safe". eg:
mergeScripts
<html> <head> <script>window.foo = 'foo'</script> </head> <body></body> <script src="./script-need-foo-variable.js"></script> <script>window.bar = 'bar'</script> </html>
after minify, script-need-foo-variable.js will be broken. see
script-need-foo-variable.js
htmlnano/lib/presets/safe.es6
Line 12 in 6bb711a
The text was updated successfully, but these errors were encountered:
Fix <script> merge with "src" #80
e379b0a
Thanks! I fixed it.
Sorry, something went wrong.
edb5eae
I released this fix in the new version 0.2.5.
No branches or pull requests
As everyone knows, the order of scripts is important, so I do not think setting
mergeScripts
true is "safe".eg:
after minify,
script-need-foo-variable.js
will be broken.see
htmlnano/lib/presets/safe.es6
Line 12 in 6bb711a
The text was updated successfully, but these errors were encountered: