Skip to content

Commit 6e9701b

Browse files
committed
Fixed TypeError: MiniCssExtractPlugin is not a constructor
- webpack-contrib/mini-css-extract-plugin#896
1 parent c2516f5 commit 6e9701b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
1+
const { default: MiniCssExtractPlugin } = require('mini-css-extract-plugin');
22
const path = require('path');
33
const webpack = require('webpack');
44
const sveltePreprocess = require('svelte-preprocess');

0 commit comments

Comments
 (0)