Skip to content

Automate serviceworker caching manifest generation #11092

Closed
@silverwind

Description

@silverwind

The script at https://github.com/go-gitea/gitea/blob/master/templates/pwa/serviceworker_js.tmpl should be replaced with something that automatically generates a appropriate service worker caching manifest based on the present files in public at compile time and then use that data together with StaticUrlPrefix at runtime to serve the actual URLs.

Normally, one would use a webpack plugin for this, but webpack can not know about StaticUrlPrefix, and also does not know about vendor files so it's not directly suitable, but could maybe be integrated in the compile-time part of the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefiletype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions