Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS styles are lost in production mode #305

Open
ghost opened this issue May 16, 2022 · 1 comment
Open

CSS styles are lost in production mode #305

ghost opened this issue May 16, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented May 16, 2022

Hello!
I have the following problem: in production mode css styles are not applied. In development mode everything is ok.
I guess it happens because of Purgecss plugin, which we have only on production. I tried adding some daterange-picker classes to whitelistPatterns, but it didn't help.

Here is how daterange-picker looks on prod:
image

Here is my styles import (as described in the docs)
image

Here is postcss.config
image

@d0hn
Copy link

d0hn commented May 30, 2022

Have you tried to use safelisting in the actual css/scss?
Like so:

/* purgecss start ignore */
@import "~vue2-daterange-picker/dist/vue2-daterange-picker.css";
/* purgecss end ignore */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant