jeerbl/webfonts-loader

webfonts-loader breaks after upgrading to css-loader@4

hadimostafapour opened this issue · 2 comments

After upgrading to css-loader v4 I got following error:
Error: Can't resolve '/ng.04800add746d14ef0416.woff'

What was the fix?

@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
                    }
                }
            ]