Webpack 4: mini-css-extract-plugin + sass-loader + splitChunks
im doing someting like this in my Webpack 4 configuration. const MiniCssExtractPlugin = require(“mini-css-extract-plugin”) module: { rules: [ { test: /\.scss$/, use: [ MiniCssExtractPlugin.loader, { loader: “css-loader”, options: { modules: true, sourceMap: true, importLoader: 2 } }, “sass-loader” ]} ] }, plugins: [ new MiniCssExtractPlugin({ // Options similar to the same options in webpackOptions.output // … Read more