-
Notifications
You must be signed in to change notification settings - Fork 88
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
Provide way to disable minification as Lightning CSS can break css when minified #241
Comments
Another option may be to look at swc-css-minifier which is not based on lightning. |
Might be worth looking at, depending on the activity on lightningcss and that package
…On Sat, Jan 20, 2024, at 5:25 PM, Daniel wrote:
Another option may be to look at swc-css-minifier which is not based on lightning.
—
Reply to this email directly, view it on GitHub <#241 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABVBTCLC25LF5F4Z43SVAWDYPRVB7AVCNFSM6AAAAABCDSLLUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGQ3TANBTGY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Lightning has some issues with order of properties and I personally think the compression is over-eager, clobbering overrides. It doesn't preserve property order either. SWC minifier is slower by about 4x, but still very fast. I think a disable-minification switch is a quick first one, followed by maybe a option to use swc-css behind a feature flag. |
Sounds good to me :)
…On Sat, Jan 20, 2024, at 8:33 PM, Daniel wrote:
Lightning has some issues with order of properties and I personally think the compression is over-eager, clobbering overrides.
SWC minifier is slower by about 4x, but still very fast.
I think a disable-minification switch is a quick first one, followed by maybe a option to use swc-css behind a feature flag.
—
Reply to this email directly, view it on GitHub <#241 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABVBTCN55XRYDHAR3QDTZ43YPSLBDAVCNFSM6AAAAABCDSLLUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGUYDEMJXGE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Having the same issue (I think?). |
By default, release mode enables Lightning minification, but there are outstanding bugs where the transforms lightning uses can break CSS intention.
We might want a way to disable minification in release mode, or at least, only minimize whitespace and nothing else.
The text was updated successfully, but these errors were encountered: