From 4683ae6b170726f16a4ccef8724cb9b810434235 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 7 Jun 2016 15:06:08 +0200 Subject: [PATCH] Fix OTS font parsing errors during development Caused by not using the ExtractTextPlugin for development. --- server.dev.js | 4 ++++ 1 file changed, 4 insertions(+) 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);