diff --git a/server.dev.js b/server.dev.js index 3040667d..1ea0f7b7 100644 --- a/server.dev.js +++ b/server.dev.js @@ -20,6 +20,10 @@ config.entry.unshift(`webpack-dev-server/client?http://${HOST}:${PORT}/`, 'webpack/hot/dev-server'); config.plugins.push(new webpack.HotModuleReplacementPlugin()); +// Set absolute url for public path to avoid OTS parsing errors in Chrome +// See http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts +config.output.publicPath = `http://${HOST}:${PORT}${config.output.publicPath}`; + // Configure server const compiler = webpack(config);