From 3009d99510265a4f6a8f20953110ecdf94143080 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 7 Oct 2022 19:25:58 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BB=D0=B8?= =?UTF-8?q?=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.prod.config.js | 2 +- server/createWebApp.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/build/webpack.prod.config.js b/build/webpack.prod.config.js index 9966778..4ec6f7a 100644 --- a/build/webpack.prod.config.js +++ b/build/webpack.prod.config.js @@ -15,7 +15,7 @@ const clientDir = path.resolve(__dirname, '../client'); module.exports = merge(baseWpConfig, { mode: 'production', output: { - path: `${publicDir}/app_new`, + path: `${publicDir}/app`, filename: 'bundle.[contenthash].js', clean: true }, diff --git a/server/createWebApp.js b/server/createWebApp.js index 1a02eb5..705f18c 100644 --- a/server/createWebApp.js +++ b/server/createWebApp.js @@ -41,13 +41,4 @@ module.exports = async(config) => { await fs.writeFile(verFile, config.version); await fs.remove(zipFile); - - //rename app_new - const webAppDir = `${config.publicDir}/app`; - const appNewDir = `${config.publicDir}/app_new`; - if (await fs.pathExists(appNewDir)) { - await fs.remove(webAppDir); - await fs.move(appNewDir, webAppDir); - } - }; \ No newline at end of file