Issues with parcel and custom animations #2204
Unanswered
joeattardi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a really simple setup with Parcel as the bundler.
When I run
parcel build styles.css
, it generates the minimal CSS file only containing the classes used, plus the custom animations I added in the Tailwind configuration (see below)However, when I run
parcel watch styles.css
it generates the huge ~2MB CSS file with everything, and doesn't contain my animation classes.Only fix I can come up with is to do
NODE_ENV=production parcel watch styles.css
- is there some configuration option I can set so I don't have to do this?Tailwind config:
PostCSS config:
Beta Was this translation helpful? Give feedback.
All reactions