Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (26 sloc) 769 Bytes

rework-loader for webpack

Rework loader for webpack which post-processes your CSS with Rework.

Installation

npm install rework-loader

Usage

Documentation: Using loaders

var css = require("style!css!rework!./file.css");
// => returns css post processed with your rework config

Configuration

var rework_plugin = require('rework_plugin');

// Other parts of webpack.config

module: {
  loaders: [
    { test: /\.css$/, loader: "style-loader!css-loader!rework-loader" },
    ...
  ]
},
rework: {
  use: [rework_plugin()]
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)