remove js clearing function until further testing
This commit is contained in:
parent
32772c679b
commit
72130b19d2
1 changed files with 0 additions and 6 deletions
|
@ -86,12 +86,6 @@ if (fs.existsSync(ROBOTS_TXT_PATH)) {
|
|||
});
|
||||
}
|
||||
|
||||
// clear the dist folder of existing js files before compilation
|
||||
let regex = /^.*\.(json|js|map)$/;
|
||||
fs.readdirSync(`${DIST_ROOT}/public/`)
|
||||
.filter(f => regex.test(f))
|
||||
.map(f => fs.unlinkSync(`${DIST_ROOT}/public/` + f));
|
||||
|
||||
let plugins = [
|
||||
new WriteFilePlugin(),
|
||||
new CopyWebpackPlugin(copyWebpackCommands),
|
||||
|
|
Loading…
Reference in a new issue