We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5120785 commit c35d7baCopy full SHA for c35d7ba
webpack.example.config.js
@@ -3,6 +3,7 @@ const path = require("path");
3
const HtmlWebpackPlugin = require("html-webpack-plugin");
4
const ConcatPlugin = require("webpack-concat-plugin");
5
const CopyPlugin = require("copy-webpack-plugin");
6
+const CleanWebpackPlugin = require("clean-webpack-plugin");
7
const OpenBrowserPlugin = require("open-browser-webpack-plugin");
8
const SimpleProgressPlugin = require("webpack-simple-progress-plugin");
9
@@ -39,6 +40,8 @@ module.exports = options => {
39
40
},
41
42
plugins: [
43
+ new CleanWebpackPlugin([ "dist" ]),
44
+
45
new HtmlWebpackPlugin({
46
template: path.resolve("static/index.html"),
47
inject: false
0 commit comments