Skip to content

Minify service worker script before in-lining in html #59

@anubhav7495

Description

@anubhav7495

Hi,

Currently build/service-worker-prod.js is inlined into HTML file without any minification.
This results in index.html to be 4.07 KB in size.

If we minify the file with uglify-es plugin before inlining, the resulting index.html is only 2.42 KB in size.

I have used this in my hnpwa-vue app to get a much lower TTI.

I would love to open a pull request to add something like that to the template.

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