JSPM

@unocss/webpack

0.31.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30545
  • Score
    100M100P100Q142518F
  • License MIT

The Webpack plugin for UnoCSS

Package Exports

  • @unocss/webpack

Readme

@unocss/webpack

The Webpack plugin for UnoCSS.

This plugin does not come with any default presets.

Currently, this plugin only supports the global mode

Installation

npm i -D @unocss/webpack
// webpack.config.js
const UnoCSS = require('@unocss/webpack').default

module.exports = {
  plugins: [
    UnoCSS({ /* options */ }),
  ],
}

Or you can have the config file in unocss.config.js or unocss.config.ts.