Skip to content

[rollup-plugin-workbox] emit files #1698

Open
@scola84

Description

@scola84

generateSw and injectManifest from workbox-build write the service-worker file directly to disk. This means that in the context of rollup there is no opportunity to apply other plugins on the file, e.g. gzip. Would it be possible to read the content of the service-worker file and emit it as an asset using this.emitFile in the writeBundle (or any other possibly more suitable) hook in rollup-plugin-workbox?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions