This project is not covered by Drupal’s security advisory policy.

This module allows to use LightningCSS to compile styles from themes and modules.
To use it simply put:
lightningcss: true
into your themes or modules *.info.yml

Browserlist configuration is respected (.browserlistrc, package.json). Enviroments are not supported.

The module uses the lightningcss cli with command:

lightningcss --minify --bundle --nesting --targets="last 2 Chrome versions, last 2 Edge versions, last 2 ff versions, last 2 Safari versions, last 2 ios_saf versions, last 2 and_ff versions, last 2 and_chr versions"

Additional Requirements

LightningCSS requires libc. The modules tries to detect it.

You need to configure your composer.json to put npm-assets into /libraries/${name}:

"extra": {
  "installer-types": ["npm-asset"],
  "installer-paths": {
    "web/libraries/{$name}": [
      "type:npm-asset",
    ],
  }
}

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Performance
  • Created by woldtwerk on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases