[Q2 Vite] css rules missing after build #13894
Unanswered
ssuess
asked this question in
CLI - PWA mode
Replies: 0 comments
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.
-
When building with vite standard config, css rules are missing. In particular, I am reading/setting a CSSMediaRule from vuex and setting it if not the default. In webpack builds, this works fine. If I set
minify: false
I can find this rule again in the build, but now my build is double the size, so not an ideal solution. Another thing I have tried is to setminify: 'terser'
which does work, but then I can't seem to drop console logs anymore (see #13890)Beta Was this translation helpful? Give feedback.
All reactions