VSCodeMinify icon indicating copy to clipboard operation
VSCodeMinify copied to clipboard

Minifying HTML should not use the JavaScript preamble

Open shockthetoast opened this issue 7 years ago • 0 comments

Currently, if a minify.js.preamble is set, it is appended inside all

For example, if I set this preamble to add a company copyright to the top of all minified JavasScript files: "preamble": "/* © 2017 My Company */", My call to add a local copy of JQuery becomes this: <script src="lib/externals/jquery/jquery-3.1.1.min.js">/* © 2017 My Company */ </script>

I assume the preamble should just be ignored in this case, but a setting to ignore the preamble for HTML files would work as well.

shockthetoast avatar Apr 17 '17 19:04 shockthetoast