Closed AugustinMauroy closed 5 months ago
EDIT: there are no nested css support ref
Ah, okay. This feature CSS nesting selectors did not exist when this loader was created.
I would say this feature is largely superfluous and is better addressed with css-modules (for which esbuild has built-in support).
Buuut it is spec'd, so I'll look for a replacement. The underlying lib I used is indeed unmaintained but it did what it needed to do (quite well and efficiently) for quite some time (I've been using this loader for like 4 years). Lightning is rather unstable—its releases are not infrequently broken.
I had do some experimentation with esbuild
, @adobe/css-tools
, Lightningcss
and postcss
.
So here the branch. nothing has changed in terms of the spec.
But node_module size change 🎉
Note: install all dependencies in the project root directory so it's also with devDependencies
main: 15,7
mo
experiment: 15,1
mo
So, IMHO postcss can do the job
W00t! I left a couple comments on that branch. It generally looks 👍 Do you wanna open a PR with it?
Do you wanna open a PR with it?
At first it was an experiment, but if you like it, here you go #7
Resolved by #7
css
npm package wasn't maintained for 4 year. also I didn't found any way withccs
to parse nested css.So one solution it's to use
@adobe/css-tools
other solution islightningcss