rollup-plugin-lightningcss

1.0.0 • Public • Published

rollup-plugin-lightningcss

latest version downloads per month license

A Rollup plugin for using LightningCSS to transform and minify your application's CSS files.

Usage

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 generateBundle hook).

Limitations

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    16

Package Sidebar

Install

npm i rollup-plugin-lightningcss

Weekly Downloads

16

Version

1.0.0

License

MIT

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • thearchitector