Replies: 13 comments 25 replies
-
|
I have a PR here attempting to fix an issue when using LightningCSS and |
Beta Was this translation helpful? Give feedback.
-
|
I've struggled with configuring the |
Beta Was this translation helpful? Give feedback.
-
|
imo lightningcss should not be stabilized until there is support for pre-processors.
|
Beta Was this translation helpful? Give feedback.
-
|
also doesn't currently work in stackblitz. there is a vite/packages/vite/src/node/plugins/css.ts Lines 2177 to 2179 in df77991 it might make sense to fallback to postcss in the browser. |
Beta Was this translation helpful? Give feedback.
-
|
I think this needs to be fixed before stabilizing: #13776 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
There has also been CI fails because of lightningcss it seems: https://github.com/vitejs/vite/actions/runs/6183034651/job/16783939656#step:13:88 Seeing |
Beta Was this translation helpful? Give feedback.
-
|
I don't think Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
|
What are your thoughts about using Lightning CSS in production? Is it stable and clear enough to use? |
Beta Was this translation helpful? Give feedback.
-
|
Alright I never actually got this feature working with vite but here's my feedback:
|
Beta Was this translation helpful? Give feedback.
-
|
To have static variables work inside of @media queries is one use case that I think of and that could make me want to use sass alongside of lightning CSS these days. Is this possible to achieve with the visitor API somehow? Is there a list of lightning CSS plugins available anywhere? I've searched, but couldn't find anything. |
Beta Was this translation helpful? Give feedback.
-
|
I'm a bit late to the party. But I'm actually in a confused state here. @danieltroger I see that your using For example qwik vite automatically has the css module support to |
Beta Was this translation helpful? Give feedback.
-
|
Suggestions:
|
Beta Was this translation helpful? Give feedback.
-
|
I'm using vite 8 beta and want to use lightningcss for both transform and minify, but it causes a custom lightningcss visitor plugin to run twice. While for my specific plugin it doesn't cause a problem, I could see it causing problems for more specific transform plugins. As well as it being slightly slower (even though lightning css is fast). The root cause is that vite/packages/vite/src/node/plugins/css.ts Lines 2193 to 2196 in 1804417 Could we either have transform and minify overrides, i.e.: {
...config.css.lightningcss,
...config.css.transform?.lightningcss,
// ...
}
// and
{
...config.css.lightningcss,
...config.css.minify?.lightningcss,
// ...
}Or perhaps allow css: {
transformer: 'lightningcss',
lightningcss: (mode: 'transform' | 'minify') => {
return { ... }
},
}, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Lightning CSS support
css.transformercss.lightningcssbuild.cssMinifyWe're creating this discussion to gather feedback about this feature, so we can later use it while moving it out of experimental.
Beta Was this translation helpful? Give feedback.
All reactions