JSPM

rollup-plugin-lightningcss

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q37264F
  • License MIT

Use Parcel's LightningCSS transformer and minifier with Rollup.

Package Exports

  • rollup-plugin-lightningcss
  • rollup-plugin-lightningcss/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-lightningcss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.