Skip to content

Commit c35d7ba

Browse files
committed
clean-up dist folder before deploying example
1 parent 5120785 commit c35d7ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpack.example.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require("path");
33
const HtmlWebpackPlugin = require("html-webpack-plugin");
44
const ConcatPlugin = require("webpack-concat-plugin");
55
const CopyPlugin = require("copy-webpack-plugin");
6+
const CleanWebpackPlugin = require("clean-webpack-plugin");
67
const OpenBrowserPlugin = require("open-browser-webpack-plugin");
78
const SimpleProgressPlugin = require("webpack-simple-progress-plugin");
89

@@ -39,6 +40,8 @@ module.exports = options => {
3940
},
4041

4142
plugins: [
43+
new CleanWebpackPlugin([ "dist" ]),
44+
4245
new HtmlWebpackPlugin({
4346
template: path.resolve("static/index.html"),
4447
inject: false

0 commit comments

Comments
 (0)