Skip to content

Commit 1c7b853

Browse files
committed
Updated CleanWebpackPlugin
1 parent 4e89ac5 commit 1c7b853

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

config/webpack.dist.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
const webpack = require('webpack');
44
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
5-
const CleanWebpackPlugin = require('clean-webpack-plugin');
6-
7-
const basePath = __dirname;
8-
const targetFolder = 'dist';
5+
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
96

107
module.exports = {
118
mode: 'production',
@@ -57,8 +54,6 @@ module.exports = {
5754
"typeof FEATURE_SOUND": JSON.stringify(true)
5855
}),
5956

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

0 commit comments

Comments
 (0)