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(),