-
I'm trying to get Parcel to minify my CSS in dev mode, but I'm not sure it's possible. The Parcel docs give the impression you can configure targets like this, but also mention minification only takes place for production builds. So I'm unsure I can expect this to work at all. My config has a Below is what my package.json looks like. I'm not running any other plugins.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Bramchi,
I have no experience yet with targets, but i'm going to try that too |
Beta Was this translation helpful? Give feedback.
-
@mrwebg Thanks for your reply. To answer my own question: No, dev mode cannot minify CSS. That's not what it is meant for. But I found a workaround. After some suggestions on StackOverflow, I ended up watching for file changes with the help of onchange and retriggering parcel's build command to achieve what I want. |
Beta Was this translation helpful? Give feedback.
@mrwebg Thanks for your reply.
To answer my own question: No, dev mode cannot minify CSS. That's not what it is meant for. But I found a workaround.
After some suggestions on StackOverflow, I ended up watching for file changes with the help of onchange and retriggering parcel's build command to achieve what I want.