mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Fixed Clean path
This commit is contained in:
parent
c91ed91ce3
commit
f718cb8b94
1 changed files with 6 additions and 1 deletions
|
@ -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',
|
||||
|
||||
|
@ -54,6 +57,8 @@ module.exports = {
|
|||
"typeof FEATURE_SOUND": JSON.stringify(true)
|
||||
}),
|
||||
|
||||
new CleanWebpackPlugin([ 'dist' ])
|
||||
new CleanWebpackPlugin([targetFolder], {
|
||||
root: basePath + '/../'
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue