Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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