From ab7fd0047f7682d3158396a87ab14f7ee9b89e24 Mon Sep 17 00:00:00 2001 From: harry Date: Fri, 6 Mar 2020 16:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=B7=AF=E5=BE=84=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/config-overrides.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/react/config-overrides.js b/public/react/config-overrides.js index a436852c8..e22849fec 100644 --- a/public/react/config-overrides.js +++ b/public/react/config-overrides.js @@ -29,6 +29,9 @@ module.exports = override( addWebpackPlugin(new MonacoWebpackPlugin({})), (config) => { config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin)); + if (process.env.NODE_ENV !== "development") { + config.output.publicPath = `/react/build/`; + } return config } ); \ No newline at end of file