Skip to content

vite build --watch does not rebuild when changing service worker code #871

@SystemParadox

Description

@SystemParadox

When running vite build --watch and using injectManifest, changing src/sw.ts doesn't cause any rebuild so nothing updates.

Touching any file in the main bundle will cause the main bundle to rebuild which does trigger the sw to also rebuild, but if you're just changing service worker code then nothing happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions