Skip to content
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

LightningCSS compression not working #237

Closed
J05HI opened this issue Dec 5, 2023 · 4 comments
Closed

LightningCSS compression not working #237

J05HI opened this issue Dec 5, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@J05HI
Copy link

J05HI commented Dec 5, 2023

The shorthand compression of LightningCSS is not working: https://lightningcss.dev/minification.html#shorthands

.myclass { border-width:0; border-style:solid; border-color:#e5e7eb; }
gets compressed to
.myclass{border-width:0;border-style:solid;border-color:#e5e7eb}
It should instead be compressed to
.myclass{border:0 solid #e5e7eb}

@NikolaRHristov NikolaRHristov self-assigned this Dec 5, 2023
@J05HI
Copy link
Author

J05HI commented Dec 19, 2023

@NikolaRHristov
Any news on this?
My astro integration config:

compress({
  CSS: {
      csso: false,
      lightningcss: {
          minify: true,
      },
  },
  HTML: true,
  Image: true,
  JavaScript: true,
  SVG: true,
  Parser: {
      CSS: 'lightningcss',
  },
})

@NikolaRHristov NikolaRHristov added the enhancement New feature or request label Dec 19, 2023
@NikolaRHristov
Copy link
Member

It's not released yet, expect in the next version v2.3.0.

@J05HI
Copy link
Author

J05HI commented Dec 19, 2023

@NikolaRHristov
Okay. Thanks for the info.

@NikolaRHristov
Copy link
Member

NikolaRHristov commented May 24, 2024

@J05HI Fixed in the latest astro-compress v2.2.24 and @playform/compress v0.0.6 Can you give it a go ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants