goldhand/sw-precache-webpack-plugin

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

Open

#133 创建于 2018年1月14日

在 GitHub 查看
 (5 评论) (6 反应) (0 负责人)JavaScript (116 fork)batch import
enhancementgood first issuehelp wanted

仓库指标

Star
 (1,443 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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)

贡献者指南