We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e89ac5 commit 1c7b853Copy full SHA for 1c7b853
1 file changed
config/webpack.dist.config.js
@@ -2,10 +2,7 @@
2
3
const webpack = require('webpack');
4
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
5
-const CleanWebpackPlugin = require('clean-webpack-plugin');
6
-
7
-const basePath = __dirname;
8
-const targetFolder = 'dist';
+const { CleanWebpackPlugin } = require('clean-webpack-plugin');
9
10
module.exports = {
11
mode: 'production',
@@ -57,8 +54,6 @@ module.exports = {
57
54
"typeof FEATURE_SOUND": JSON.stringify(true)
58
55
}),
59
56
60
- new CleanWebpackPlugin([targetFolder], {
61
- root: basePath + '/../'
62
- })
+ new CleanWebpackPlugin()
63
]
64
};
0 commit comments