poi-preset-purifycss

0.1.0 • Public • Published

poi-preset-purifycss

Use purify-css to remove unused CSS. See egoist/poi#253

Install

yarn add poi-preset-purifycss --dev

Usage

This preset will add PurifyCSSPlugin with purifycss-webpack for you:

By default it will scan all *.vue files for markup to determine what CSS classes you are using.

// poi.config.js
module.exports = {
  presets: [
    require('poi-preset-purifycss')()
  ]
}

Then it will reduce CSS code when you run poi build.

It accepts the same options as which in purifycss-webpack:

require('poi-preset-purifycss')({ minimize: true, paths: '**/*.html' })

License

MIT © morrislaptop

Readme

Keywords

none

Package Sidebar

Install

npm i poi-preset-purifycss

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • morrislaptop