A Rollup plugin for using LightningCSS to transform and minify your application's CSS files.
Currently the plugin supports transforming separate CSS files using a shared configuration block. Specific options for that configuration block can be found in the LightningCSS documentation, or via the source code for a more complete overview.
Source maps will be generated if the
sourceMap option is passed as
true in the configuration.
This plugin doesn't use anything special, so it should work with virtually all Rollup versions (as long as it implements the
Both CSS files and their maps are packaged into the bundle produced when Rollup processes another genuine JS file (the entrypoint). As such, their output destination is not currently configurable and all CSS files will be placed at the same level of the output.