Fix TypeError in CleanWebpackPlugin instantiation (#185)
Fix "TypeError: CleanWebpackPlugin is not a constructor" for clean-webpack-plugin >= 3.0.0
This commit is contained in:
parent
8a8eda98c2
commit
55b82b1502
|
@ -1,6 +1,6 @@
|
||||||
const merge = require("webpack-merge");
|
const merge = require("webpack-merge");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const CleanWebpackPlugin = require("clean-webpack-plugin");
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
|
|
||||||
const common = require("./webpack.common");
|
const common = require("./webpack.common");
|
||||||
|
|
Reference in New Issue