goldhand / goldhand/sw-precache-webpack-plugin

Feature request. Add an option to GZIP service-worker.js file.

Open
#133 5 comments 6 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
JavaScript
Stars
1.4k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

The issue I'm experiencing is pretty annoying.
I'm trying to optimize my first byte, by turning off `compression`, and gziping everything by webpack with CompressionPlugin. The issue is that it doesn't compress `service-worker.js` produced by sw-precache-webpack-plugin.

I understand the reason why: `service-worker.js` should cache all chunks produced by webpack after CompressionPlugin compression.

This is why I think it should be an option in sw-precache-webpack-plugin itself.

Thank you)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.