diff --git a/packages/plugin/webpack/src/WebpackPlugin.ts b/packages/plugin/webpack/src/WebpackPlugin.ts index ce03bfc38f..b419c9f712 100644 --- a/packages/plugin/webpack/src/WebpackPlugin.ts +++ b/packages/plugin/webpack/src/WebpackPlugin.ts @@ -425,7 +425,7 @@ Your packaged app may be larger than expected if you dont ignore everything othe error: tab.log.bind(tab), warn: tab.log.bind(tab), }, - publicPath: '/', + ...(this.isProd ? {} : { publicPath: '/' }), hot: true, historyApiFallback: true, writeToDisk: true,