remove js clearing function until further testing

This commit is contained in:
Anthony 2021-06-03 21:35:48 +02:00 committed by Jeremy Kauffman
parent 32772c679b
commit 72130b19d2

View file

@ -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 = [ let plugins = [
new WriteFilePlugin(), new WriteFilePlugin(),
new CopyWebpackPlugin(copyWebpackCommands), new CopyWebpackPlugin(copyWebpackCommands),