Rework loader for webpack which post-processes your CSS with Rework.
npm install rework-loader
var css = require("style!css!rework!./file.css");
// => returns css post processed with your rework config
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()]
}