We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
index.html
My website has different paths (rather than different host names) depending on the build config, like:
I'm using ServiceWorkerBaseUrl and ManifestBaseUrl to set the base accordingly.
ServiceWorkerBaseUrl
ManifestBaseUrl
However, this only works once. Once the index.html contains the manifest and service worker URLs, MSBuild no longer touches it:
Condition="'$(IndexLines.Contains($(ServiceWorkerRegisterFileName)))'=='false'"
This logic doesn't really work when switching between different URLs as described above.
Two possible approaches:
Condition
The text was updated successfully, but these errors were encountered:
Thanks for finding this - I'll see what can be done.
Sorry, something went wrong.
I've not forgotten - just been busy!
It's fine! Me too, actually. Probably won't get back to my Blazor project until mid-January.
No branches or pull requests
My website has different paths (rather than different host names) depending on the build config, like:
I'm using
ServiceWorkerBaseUrl
andManifestBaseUrl
to set the base accordingly.However, this only works once. Once the
index.html
contains the manifest and service worker URLs, MSBuild no longer touches it:This logic doesn't really work when switching between different URLs as described above.
Two possible approaches:
index.html
at all, but rather create an intermediary versionCondition
such that the edited line can still be updatedThe text was updated successfully, but these errors were encountered: