Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 618 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 618 Bytes

@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 @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.

License

MIT License © 2021-PRESENT Anthony Fu