-
-
Notifications
You must be signed in to change notification settings - Fork 372
Make template.html and sw.js use publicPath #323
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
Changes from 3 commits
a4516a8
a59e222
5f5f0f8
ad67662
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> | ||
| <meta name="mobile-web-app-capable" content="yes"> | ||
| <meta name="apple-mobile-web-app-capable" content="yes"> | ||
| <link rel="manifest" href="/manifest.json"> | ||
| <link rel="manifest" href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me it works right now -
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to stay away from I understand the inconsistency, but let me know what you think! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is mutable, and this how webpack itself proposes to use this variable if the |
||
| <% if (htmlWebpackPlugin.options.manifest.theme_color) { %> | ||
| <meta name="theme-color" content="<%= htmlWebpackPlugin.options.manifest.theme_color %>"> | ||
| <% } %> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@developit Please take a look at this and decide finally about the solution. I really need this feature in my project :-)
In my opinion it is a nice solution, what are your concerns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this, webpack will never change this var name and it keeps the resolution at runtime.