Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
Add MiniCssExtractPlugin
  • Loading branch information
sebtoombs committed Oct 12, 2022
1 parent 9e9fde0 commit e06069d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/angular/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = (config) => {
// Add the Vanilla Extract plugin as per the docs
config.plugins.push(new VanillaExtractPlugin());
config.plugins.push(new MiniCssExtractPlugin());

config.module.rules = config.module?.rules?.map((rule) => {
// Modify angular loader so it doesn't error out on vanilla extract files
Expand Down

0 comments on commit e06069d

Please sign in to comment.