-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
webpack loader null #211
Comments
#208 is the fix for this. Right now the all files inside |
uh @KyleAMathews.. I'm jumping on this again... In my initial issue, it's something inside a CSS, not a direct import. Is it the same thing? I really think it's not right and gatsby shouldn't use a null loader by default, but the real loader for the file type. |
Agreed :-) If you want to create a PR for fixing this plus #208 that'd be 💯 |
A few extensions have a null loader, see https://github.com/gatsbyjs/gatsby/blob/master/lib/utils/webpack.config.js#L172-L195
Shouldn't it be file-loader by default, with
loader: 'file'
?I'm saying that because I'm importing css, and inside my css, I have images. But because of the null loader, I'm getting this kind of things
url([object Object])
. Updating the loader to use the file loader instead fixes the issue and keep the path.The text was updated successfully, but these errors were encountered: