We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c91ed91 commit f718cb8Copy full SHA for f718cb8
1 file changed
config/webpack.dist.config.js
@@ -4,6 +4,9 @@ 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';
9
+
10
module.exports = {
11
mode: 'production',
12
@@ -54,6 +57,8 @@ module.exports = {
54
57
"typeof FEATURE_SOUND": JSON.stringify(true)
55
58
}),
56
59
- new CleanWebpackPlugin([ 'dist' ])
60
+ new CleanWebpackPlugin([targetFolder], {
61
+ root: basePath + '/../'
62
+ })
63
]
64
};
0 commit comments