This package has been deprecated

Author message:

Install 'purifycss-webpack-plugin' instead! 'purifycss-loader' has changed names.

purifycss-loader

1.0.1 • Public • Published

Installation

npm install purifycss-loader

Usage

var PurifyCssPlugin = require('purifycss-loader/PurifyCssPlugin');
 
var webpackConfig = {
  // ...
 
  module: {
    loaders: [{
      test: /\.css$/, loader: "style-loader!css-loader!purifycss-loader"
    }]
  },
 
  plugins: [
    new PurifyCssPlugin(__dirname, '/index.html')
  ]
}

API

Pass in the filepath to the root html for us to detect classes there. PurifyCSS will look at all your bundles on its own.

Package Sidebar

Install

npm i purifycss-loader

Weekly Downloads

6

Version

1.0.1

License

ISC

Last publish

Collaborators

  • ingwiephoenix
  • kennyt