diff --git a/web/webpack.config.js b/web/webpack.config.js index 5321eabff..8435d8ca2 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -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),