From 22043a0982671fbe3281c2a322462d7911bc07bd Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 29 Apr 2020 14:42:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?vendor.js=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/webpack.config.prod.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 8954be74..1203170e 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -51,12 +51,12 @@ module.exports = { priority: -20, reuseExistingChunk: true, }, - vendors: { - name: 'vendors', - test: /[\\/]node_modules[\\/]/, - priority: -10, - chunks: "all" - } + // vendors: { + // name: 'vendors', + // test: /[\\/]node_modules[\\/]/, + // priority: -10, + // chunks: "all" + // } } }, runtimeChunk: true From a6886e52612e4e6812d7c19cd273c5610f4807e3 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 29 Apr 2020 15:01:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9cdn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/webpack.config.prod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 1203170e..49f63201 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -22,10 +22,10 @@ const getClientEnvironment = require('./env'); let publicPath = '/react/build/'; let nodeEnv = process.env.NODE_ENV if (nodeEnv === 'testBuild') { - publicPath = 'https://testali-cdn.educoder.net/react/build/'; + publicPath = 'https://testforgeplus.trustie.net/react/build/'; } if (nodeEnv === 'production') { - publicPath = 'https://ali-cdn.educoder.net/react/build/'; + publicPath = 'https://forgeplus.trustie.net/react/build/'; } const publicUrl = publicPath.slice(0, -1); const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; From d7b579f6826a7c9ed9c3fe14cd8de8e61f3dace1 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 29 Apr 2020 15:19:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9publicPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/webpack.config.prod.js | 13 +++++++------ src/AppConfig.js | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 49f63201..068677fe 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -21,12 +21,13 @@ const getClientEnvironment = require('./env'); // 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/'; -} +// if (nodeEnv === 'testBuild') { +// publicPath = 'https://testforgeplus.trustie.net/react/build/'; +// } +// if (nodeEnv === 'production') { +// publicPath = 'https://forgeplus.trustie.net/react/build/'; +// } +// publicPath = 'https://forgeplus.trustie.net/react/build/'; const publicUrl = publicPath.slice(0, -1); const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; const env = getClientEnvironment(publicPath); diff --git a/src/AppConfig.js b/src/AppConfig.js index ede4ddf0..dfb7e19a 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -115,13 +115,13 @@ export function initAxiosInterceptors(props) { // https://github.com/axios/axios/issues/1497 // TODO 读取到package.json中的配置? - var proxy = "http://localhost:3000" + var proxy = "http://localhost:3004" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" // proxy = "https://testeduplus2.educoder.net" //proxy="http://47.96.87.25:48080" - proxy = "https://pre-newweb.educoder.net" - proxy = "https://testforgeplus.trustie.net/" + // proxy = "https://pre-newweb.educoder.net" + // proxy = "https://testforgeplus.trustie.net/" // proxy="https://test-jupyterweb.educoder.net" // proxy="https://test-newweb.educoder.net" // proxy="https://test-jupyterweb.educoder.net"