Skip to content

Instantly share code, notes, and snippets.

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: [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment