Skip to content

Commit f718cb8

Browse files
committed
Fixed Clean path
1 parent c91ed91 commit f718cb8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

config/webpack.dist.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const webpack = require('webpack');
44
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
55
const CleanWebpackPlugin = require('clean-webpack-plugin');
66

7+
const basePath = __dirname;
8+
const targetFolder = 'dist';
9+
710
module.exports = {
811
mode: 'production',
912

@@ -54,6 +57,8 @@ module.exports = {
5457
"typeof FEATURE_SOUND": JSON.stringify(true)
5558
}),
5659

57-
new CleanWebpackPlugin([ 'dist' ])
60+
new CleanWebpackPlugin([targetFolder], {
61+
root: basePath + '/../'
62+
})
5863
]
5964
};

0 commit comments

Comments
 (0)