Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostCSS loader URL #25

Open
TomDeSmet opened this issue Apr 7, 2020 · 1 comment
Open

PostCSS loader URL #25

TomDeSmet opened this issue Apr 7, 2020 · 1 comment

Comments

@TomDeSmet
Copy link

I just spend hours looking for a solution why my woff font files didn't get loaded.
Turns out, in the latest webpack.dev.js file in the postCSS loader config you disable the url() function of CSS: https://webpack.js.org/loaders/css-loader/#url

Turning this on solved my issue. I guess this also disabled the use of background-image in CSS.

Is this a bug or a feature? And if the latter, why?

@TomDeSmet TomDeSmet changed the title PostCS loader URL PostCSS loader URL Apr 7, 2020
@karensg
Copy link

karensg commented Apr 22, 2020

You probably upgraded css-loader to version 3. They inverted the values in the config:
https://github.com/webpack-contrib/css-loader/releases/tag/v3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants