The Webpack plugin for UnoCSS.
This plugin does not come with any default presets.
Currently, this plugin only supports the global
mode
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
.
MIT License © 2021-PRESENT Anthony Fu