-
-
Notifications
You must be signed in to change notification settings - Fork 354
[Meta] Replace CleanCSS by LightningCSS #2429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Meta] Replace CleanCSS by LightningCSS #2429
Conversation
📊 Packages dist files size differenceThanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
|
b9dcde3
to
3f2e4f4
Compare
[data-loading=""],[data-loading=show],[data-loading=delay\|show]{display:none} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kocal Not sure about that... and we may want to discuss this kind of thing together 😅
.toggle-password-container{position:relative}.toggle-password-icon{width:1rem;height:1rem}.toggle-password-button{background-color:#0000;border:none;flex-direction:row;place-items:center;column-gap:.25rem;height:1rem;font-size:.875rem;line-height:1.25rem;display:flex;position:absolute;top:-1.25rem;right:.5rem} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1% less compatibility ;)
@@ -22,7 +22,7 @@ | |||
"@rollup/plugin-typescript": "^11.1.6", | |||
"@symfony/stimulus-testing": "^2.0.1", | |||
"@vitest/browser": "^2.1.1", | |||
"clean-css": "^5.3.3", | |||
"lightningcss": "^1.28.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the change
-1 for the hurry 😅
filename: path.basename(inputStyleFile, '.css'), | ||
code: Buffer.from(css), | ||
minify: true, | ||
sourceMap: false, // TODO: Maybe we can add source maps later? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Source Maps have more interest when there is multiple source files, variables, etc.. not the case here.
But if we have a component offering CSS, why not
One more step to modernize our build stack, by replacing https://github.com/clean-css/clean-css by https://lightningcss.dev/.
TBH it does not bring a lot of value since we only have 4 very small CSS files, buuuut that's for a better future :) (#rolldown)