Skip to content

Lightning CSS integration for Vite, Rollup, esbuild, Webpack, Vue CLI, and more.

License

Notifications You must be signed in to change notification settings

unplugin/unplugin-lightningcss

Repository files navigation

unplugin-lightningcss npm

Unit Test

Lightning CSS integration for Vite, Rollup, esbuild, Webpack, Vue CLI, and more.

Installation

npm i -D unplugin-lightningcss
Vite
// vite.config.ts
import LightningCSS from 'unplugin-lightningcss/vite'

export default defineConfig({
  plugins: [LightningCSS()],
})


Rollup
// rollup.config.js
import LightningCSS from 'unplugin-lightningcss/rollup'

export default {
  plugins: [LightningCSS()],
}


esbuild
// esbuild.config.js
import { build } from 'esbuild'

build({
  plugins: [require('unplugin-lightningcss/esbuild')()],
})


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [require('unplugin-lightningcss/webpack')()],
}


Sponsors

License

MIT License © 2023-PRESENT 三咲智子