The mini-css-extract-plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMaps.
Questions tagged [mini-css-extract-plugin]
185 questions
0
votes
4 answers
Module parse failed unexpected token when using Webpack 4 with extract-text-plugin
I have read every possible configuration under the sun regarding Webpack 4 to bundle .scss files into .css files.
Nothing is working for me.
Here is my webpack configuration:
var path = require('path');
var ExtractTextPlugin =…

Tarun
- 939
- 15
- 25
0
votes
0 answers
Why mini-css-extract-plugin does not creating css file for less?
I tried extract-text-webpack-plugin to extract css file, but it failed. The version of webpack is 4.16.3, so I use mini-css-extract-plugin to do that, failed too! I think it is not about the configuration of these plugins. There is my webpack…

caps
- 1
- 2
0
votes
1 answer
Why only vendor css is being generated in production mode using Webpack 4?
Here is the repository reproducing the error: https://github.com/sandrocsimas/webpack-bug
I'm using webpack 4.16.1 and mini-css-extract-plugin 0.4.1.
When I run Webpack in production mode, only vendor.css bundle is generated. Development mode…

Sandro Simas
- 1,268
- 3
- 21
- 35
0
votes
0 answers
How to append extracted CSS file to HTML template in Webpack 4
When I use extract-text-webpack-plugin, the extracted single CSS file appends itself to my index.html when creating the production build. However, I just switched to mini-css-extract-plugin and when I build for production the extracted single CSS…

esausilva
- 1,964
- 4
- 26
- 54
-2
votes
1 answer
How to debug webpack when bundling for production?
I'm currently working learning webpack and have a working development config but when trying to use that same config for production everything but the css bundles.
assets master % node_modules/webpack/bin/webpack.js --display-optimization-bailout…

Polygon Pusher
- 2,865
- 2
- 27
- 32