vue2-daterange-picker icon indicating copy to clipboard operation
vue2-daterange-picker copied to clipboard

CSS styles are lost in production mode

Open ghost opened this issue 2 years ago • 1 comments

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

ghost avatar May 16 '22 07:05 ghost

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 */

d0hn avatar May 30 '22 14:05 d0hn