goldhand/sw-precache-webpack-plugin

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

Open

#133 aberto em 14 de jan. de 2018

Ver no GitHub
 (5 comments) (6 reactions) (0 assignees)JavaScript (116 forks)batch import
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (1.443 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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)

Guia do colaborador