Skip to content

Need better logic for writing index.html meta tags #6

@chucker

Description

@chucker

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.

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:

  • don't edit the index.html at all, but rather create an intermediary version
  • edit it, but improve the Condition such that the edited line can still be updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions