icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
151 stars 151 forks source link

Styles gone with NODE_ENV=production #121

Open zach2825 opened 4 months ago

zach2825 commented 4 months ago

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