vue3-datepicker icon indicating copy to clipboard operation
vue3-datepicker copied to clipboard

Styles gone with NODE_ENV=production

Open zach2825 opened this issue 9 months ago • 0 comments

There was a recent minor update from 0.3.4 to 0.3.8, which changed how the styles are injected into the package. Using "vite-plugin-css-injected-by-js" in my builds, the styles are missing.

I'm not sure what details to add. I am using Postcss. I did try adding /v3dp/, into my purcecss.safelist array and a few other things. Nothing seems to have made a difference.

I also tried including the CSS in the package, specifically with import 'vue3-datepicker/dist/vue3-datepicker.css', but it made no difference.

I'm unsure what else to try besides manually copying the CSS from the package into the project. Any ideas/ suggestions are welcome.

Thanks in advanced.

image

zach2825 avatar May 10 '24 19:05 zach2825