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:
Alex Muthmann 2019-06-07 18:50:55 +02:00 committed by Shawn Erquhart
parent 8a8eda98c2
commit 55b82b1502
1 changed files with 1 additions and 1 deletions

View File

@ -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");