From 4bc1e19fd44aa892f54368ca500922a1ed32fd76 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 20 Jul 2017 20:50:22 -0400 Subject: [PATCH] Using real public path, though it doesn't look like it matters --- lib/config-generator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config-generator.js b/lib/config-generator.js index 69ea3161..908b3686 100644 --- a/lib/config-generator.js +++ b/lib/config-generator.js @@ -381,7 +381,8 @@ class ConfigGenerator { return { contentBase: contentBase, - publicPath: this.webpackConfig.publicPath, + // this doesn't appear to be necessary, but here in case + publicPath: this.webpackConfig.getRealPublicPath(), // avoid CORS concerns trying to load things like fonts from the dev server headers: { 'Access-Control-Allow-Origin': '*' }, hot: this.webpackConfig.useHotModuleReplacementPlugin(),