npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@fullhuman/purgecss-loader

1.0.0 • Public • Published

purgecss-loader

Purgecss loader for Webpack

Installation

npm install purgecss-loader --save-dev

Usage

Here is an example of how to use the loader in a Webpack configuration with Vue.js Single File Components:

{
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: 'css-loader',
            options: { importLoaders: 1 }
          },
          {
            loader: 'purgecss-loader',
            options: {
              content: [
                path.join(__dirname, 'src/components/**/*.vue')
              ],
              whitelistPatterns: [
                /alert/
              ]
            }
          }
        ]
      }
    ]
  }
}

install

npm i @fullhuman/purgecss-loader

Downloadsweekly downloads

616

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability