1.0.1 • Published 9 years ago

purifycss-loader v1.0.1

Weekly downloads
9
License
ISC
Repository
github
Last release
9 years ago

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.