forked from mystiq/hydrogen-web
add comment for improvements
This commit is contained in:
parent
923a1a2057
commit
eb60f6717a
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ module.exports = function injectServiceWorker(swFile) {
|
||||||
const globalHash = getBuildHash(cachedFileNames, uncachedFileContentMap);
|
const globalHash = getBuildHash(cachedFileNames, uncachedFileContentMap);
|
||||||
swSource = await buildServiceWorker(swSource, version, globalHash, assets);
|
swSource = await buildServiceWorker(swSource, version, globalHash, assets);
|
||||||
const outputName = path.basename(absoluteSwFile);
|
const outputName = path.basename(absoluteSwFile);
|
||||||
|
// TODO: do normal build transformations for service worker too,
|
||||||
|
// I think if we emit it as a chunk rather than an asset it would
|
||||||
|
// but we can't emit chunks anymore in generateBundle I think ...
|
||||||
this.emitFile({
|
this.emitFile({
|
||||||
type: "asset",
|
type: "asset",
|
||||||
fileName: outputName,
|
fileName: outputName,
|
||||||
|
|
Loading…
Reference in a new issue