Selaa lähdekoodia

Убрал лишнее

Book Pauk 3 vuotta sitten
vanhempi
commit
3009d99510
2 muutettua tiedostoa jossa 1 lisäystä ja 10 poistoa
  1. 1 1
      build/webpack.prod.config.js
  2. 0 9
      server/createWebApp.js

+ 1 - 1
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
     },

+ 0 - 9
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);
-    }
-
 };