Replies: 1 comment 1 reply
-
Add a {
"extends": "@parcel/config-default",
"optimizers": {
"*.js": []
}
} Which removes all JS optimizer plugins but leaves all other file types as they are. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, I don't want Parcel to generate code like var t in my JS files. So I set optimize: false in package.json. Then I found my CSS code didn't be minified. So I tried using Transformer plugin with clean-css from NPM to minify my code. But sadly I found my CSS still be formatted after executing the setCode function.
Help! I will be appreciated if you can solve my problem.
Beta Was this translation helpful? Give feedback.
All reactions