From 061ec791469bbfedd26518f464994180b0e5890e Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 23 Mar 2020 12:44:39 +0800 Subject: [PATCH] fix --- public/react/config-overrides.js | 6 +++--- public/react/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/config-overrides.js b/public/react/config-overrides.js index 9eabda352..7a91afb73 100644 --- a/public/react/config-overrides.js +++ b/public/react/config-overrides.js @@ -75,9 +75,9 @@ module.exports = override( // addWebpackPlugin(instance), (config) => { config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin)); - //if (process.env.NODE_ENV !== "development") { - // config.output.publicPath = `/react/build/`; - //} + if (process.env.NODE_ENV !== "development") { + config.output.publicPath = `/react/build/`; + } return config } ); \ No newline at end of file diff --git a/public/react/package.json b/public/react/package.json index 994267e69..13e9631fd 100644 --- a/public/react/package.json +++ b/public/react/package.json @@ -59,7 +59,7 @@ }, "scripts": { "start": "PORT=3007 react-app-rewired start", - "build": "react-app-rewired --max_old_space_size=4096 build ", + "build": "react-app-rewired --max_old_space_size=8192 build ", "test": "react-scripts test", "eject": "react-scripts eject" },