You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I prevent parcel changing script variable names without --no-minify?
π¦ Context
I'm creating a Doubleclick banner with parcel. Doubleclick banners require a global variable called clickTag. Parcel is changing the name of this variable. Using --no-minify works, but my js/css files are then unminified.
Great answer, Although the HTML5 Validator (https://h5validator.appspot.com/) still gives my ZIP a CLICK_TAG_MISSING. I'm going to close this because I think the real issue is with the validator -- it is only looking for var clickTag, even though the banner ad works fine.
β Question
How do I prevent parcel changing script variable names without --no-minify?
π¦ Context
I'm creating a Doubleclick banner with parcel. Doubleclick banners require a global variable called
clickTag
. Parcel is changing the name of this variable. Using--no-minify
works, but my js/css files are then unminified.π» Code Sample
.htmlnanorc
{ "collapseAttributeWhitespace": false, "collapseBooleanAttributes": false, "collapseWhitespace": "conservative", "custom": [], "deduplicateAttributeValues": false, "mergeScripts": false, "mergeStyles": false, "removeUnusedCss": false, "minifyJs": false, "minifySvg": false, "removeEmptyAttributes": false, "removeRedundantAttributes": false, "removeComments": false }
index.html:
``
<script>
var clickTag = "http://www.google.com";
</script>
after build
``
<script>
var o = "http://www.google.com";
</script>
π Your Environment
The text was updated successfully, but these errors were encountered: