-
Notifications
You must be signed in to change notification settings - Fork 516
How to minify the css file extract by extract-text-webpack-plugin? #434
Comments
@qidaneix Set the minimize option in + { loader: 'css-loader', options: { minimize: true } ) or use |
@qidaneix @michael-ciniawsky |
Despite this issue is closed, maybe this code can help other developers looking for the same:
|
@albertogasparin I tried using OptimizeCssAssetsPlugin, but it seems to embed the sourcemap information inside the css bundle itself and as a result increase the bundle size. Any ideas on how to make the sourceMapUrl to point to a map file instead? |
@chhaymenghong I'm actually turning css source maps off on production. You already reported it, so let's see what the owner has to say |
For anybody using css-loader 1.0.0, the minimize options is removed and you have to use postcss + cssnano instead. |
I use webpack@2.2.1 and extract-text-webpack-plugin to extract css into a separate .css file. I have read the document but I can find a way to minify the .css file. How to do it?
The text was updated successfully, but these errors were encountered: