From 0a67b9606a9ca142c81397595d38d5aac15d71dd Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 24 Dec 2020 14:41:17 +0800 Subject: [PATCH] update webpack --- config/webpack.config.prod.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 5d71d600..a7b2c9f4 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -17,16 +17,7 @@ const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); const paths = require("./paths"); const getClientEnvironment = require("./env"); -// Some apps do not use client-side routing with pushState. -// For these, "homepage" can be set to "." to enable relative asset paths. let publicPath = "/react/build/"; -// let nodeEnv = process.env.NODE_ENV -// if (nodeEnv === 'testBuild') { -// publicPath = 'https://testforgeplus.trustie.net/react/build/'; -// } -// if (nodeEnv === 'production') { -// publicPath = 'https://forgeplus.trustie.net/react/build/'; -// } const publicUrl = publicPath.slice(0, -1); const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== "false"; const env = getClientEnvironment(publicPath);