Pleeease loader for webpack to postprocesses your CSS.
npm install pleeease-loader --save-dev
Within webpack config :
module.exports = {
module: {
loaders: [
{
test: /\.css$/,
loader: "style!css!pleeease"
}
]
}
}
Now your CSS files requirements will be processed by Pleeease.
Add a pleeease section in webpack config :
module.exports = {
module: {
loaders: [
{
test: /\.styl$/,
loader: "style!css!pleeease"
}
]
},
pleeease: {
stylus: true,
autoprefixer: { browsers: ["last 4 versions", "ios 6"]},
minifier: true,
mqpacker: true
}
}