-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
manifest.json <link hrefs> turn into [object Object] #558
Comments
This happens because for JSON, we use We can definitely treat We would need to place it outside |
@gaearon I want to start contributing and I'm looking for a first bug to start with now that I have more time. I could take this one. |
Sounds great, @jvorcak you have it! |
#428 shows a similar approach where we handle a specific filename differently. |
Would be nice to find a way to configure html-webpack-compiler's loaders separately. That way we don't have confusing special cases added to main config (what if one would want to require the same resource both from |
@andreypopp I totally agree with that. I've spent some time investigating how that could be done and I got nowhere. There will be other files (apple icons, etc) that will be treated in a same way so I think more general solution needs to be proposed. I'll investigate whether |
Why add special rules to the config for everyone's obscure use cases when you can just use the inline loader syntax in your application?
|
I have a related problem when trying to fully implement a favicon for my site. I'm following the recommandations from Using Android however relies on the manifest file referenced in this issue. This file itself needs to reference a relative path to the Android home screen icon. Ideally, webpack should add this icon in the Finally, IE/Edge relies on a Check the RFG FAQ for details. |
Because we don’t support this syntax officially. Webpack’s inline loader notation has proven to be extremely confusing to many developers, and is incompatible with other bundlers, locking your code into using Webpack. We may stop supporting it at any moment so please don’t use it. |
Going to move this to 0.5.0 where I want to solve a few issues like this in a single batch. |
I drafted a proposal to solve this in #703. Unless we find some fatal flaws, it should come out in 0.5.0. Let me know what you think! |
Closing as this is fixed, and will be released in 0.5.0. |
This is now supported in 0.5.0. Read about using the new See also migration instructions and breaking changes in 0.5.0. |
(Using 0.4.0)
If I add this:
<link rel="manifest" href="./src/manifest.json">
It turns into this in dev:
<link rel="manifest" href="[object Object]">
And into this after build:
<link rel="manifest" href="[object" object]="">
(Found a few issues talking about serving manifest.json but nothing that specifically mentions this happening.)
The text was updated successfully, but these errors were encountered: