ember-cli-lightningcss is a Classic Ember CLI addon that keeps production
CSS minification working when a modern vendor stylesheet uses native CSS
nesting.
It minifies vendor.css with Lightning CSS and
application CSS with CleanCSS. This combination supports modern third-party
CSS while preserving compatibility with legacy nested at-rules produced by
older Ember applications.
Install the published package:
ember install ember-cli-lightningcssUntil an npm release is available, install directly from GitHub:
ember install github:khaled-s/ember-cli-lightningcssNo application configuration is required. The addon registers itself as the
project's minify-css preprocessor during production builds.
- Classic Ember CLI 3.28+
- Applications that use
ember-cli-build.js - Node.js versions supported by the host Ember CLI application
This addon is for the Classic Ember CLI build pipeline. It does not configure Vite-based Ember applications.
npm install
npm test
npm pack --dry-runThe test suite verifies addon registration as well as both the legacy application-CSS and modern nested vendor-CSS minification paths.