purifycss-loader

v1.0.1
PurifyCSS plugin for webpack
webpack uncss plugin purify

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.

npm i purifycss-loader

Metadata

  • ISC
  • Whatever
  • Kenny Tran, Matthew Rourke, Phoebe Li
  • released 9/23/2015

Downloads

Maintainers