mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Fix OTS font parsing errors during development
Caused by not using the ExtractTextPlugin for development.
This commit is contained in:
parent
34b1a2c1fc
commit
4683ae6b17
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user