webfonts-loader breaks after upgrading to css-loader@4
hadimostafapour opened this issue · 2 comments
hadimostafapour commented
After upgrading to css-loader v4 I got following error:
Error: Can't resolve '/ng.04800add746d14ef0416.woff'
LucidityDesign commented
What was the fix?
hadimostafapour commented
@LucidityDesign
I just change my webpack configuration to (set url to false):
use: [
development && !debug ? 'style-loader' : MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
modules: false,
url: false /** ADD THIS **/
}
},
{
loader: 'webfonts-loader',
options: {
publicPath
}
}
]