Skip to content

Commit

Permalink
Fixed Clean path
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 10, 2019
1 parent c91ed91 commit f718cb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/webpack.dist.config.js
Expand Up @@ -4,6 +4,9 @@ const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');

const basePath = __dirname;
const targetFolder = 'dist';

module.exports = {
mode: 'production',

Expand Down Expand Up @@ -54,6 +57,8 @@ module.exports = {
"typeof FEATURE_SOUND": JSON.stringify(true)
}),

new CleanWebpackPlugin([ 'dist' ])
new CleanWebpackPlugin([targetFolder], {
root: basePath + '/../'
})
]
};

0 comments on commit f718cb8

Please sign in to comment.