1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-17 01:53:16 +02:00

Fix OTS font parsing errors during development

Caused by not using the ExtractTextPlugin for development.
This commit is contained in:
Brett Sun 2016-06-07 15:06:08 +02:00
parent 34b1a2c1fc
commit 4683ae6b17

View File

@ -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);