🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@averjs/purgecss

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@averjs/purgecss

purgecss plugin for averjs

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 29 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts