Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
...
module: {
rules: [
...
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, "css-loader"]
}
]
},
plugins: [
...
new MiniCssExtractPlugin({
filename: "css/[name].[chunkhash].css"
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment