From 72130b19d2c81f75d1c2a438aa9e54b8f802768f Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 3 Jun 2021 21:35:48 +0200 Subject: [PATCH] remove js clearing function until further testing --- web/webpack.config.js | 6 ------ 1 file changed, 6 deletions(-) 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),