Skip to content

exreplay/averjs-purgecss

Repository files navigation

@averjs/purgecss

This Plugin gets you started with PurgeCSS.

Installation

You just have to install the package and add it to the aver.config.js file to the plugins array.

yarn add @averjs/purgecss
// aver.config.js
{
  plugins: [
    '@averjs/purgecss'
  ]
}

Usage

After adding the plugin to aver you can configure it by adding a new purgecss config param to the aver.config.js.

// aver-config.js
{
  purgecss: {
    whitelistPatterns: [/fa/]
  }
}

This way, is it also possible for other plugins to extend the config.

Configuration

enabled

  • Type: Boolean
  • Default: process.env.NODE_ENV === 'production'

If you would like to manually enable or disable PurgeCSS, you can pass this option to the plugin.

About

PurgeCSS plugin for aver.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •