umbopepato / rollup-plugin-postcss-lit

Rollup plugin to load PostCSSed stylesheets in LitElement components
MIT License
34 stars 6 forks source link

feat: implement vite `vite:post-css` support #41

Closed e111077 closed 3 years ago

e111077 commented 3 years ago

Vite does a weird thing on its production build where it will make it export a literal rather than a variable e.g.

// normal postcss output
var css_hash = "...";

export default css_hash;

// vite output
export default "...";

This adds support for the latter

fixes e111077/vite-lit-element-ts-sass#3

VitaliiK91 commented 3 years ago

This resolves the issue with vite production build!