Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Load the plugin
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
// Add to config plugins
config.plugins = [
new MiniCssExtractPlugin()
];
// Update the css rule of the loader from using a style-loader to use our custom plugin loader.
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.