deckgo / starter-kit

The developer kit to create slides with DeckDeckGo
https://deckdeckgo.com
MIT License
47 stars 13 forks source link

index.html changes md5sum after workbox generation #49

Closed nmattia closed 4 years ago

nmattia commented 4 years ago

It looks like the index.html generated by the starterkit is preprocessed after the workbox precache has been generated:

/tmp/tmp.m7nFVASGDh$ cat precache-manifest.*.js | grep -C 1 robots
    "revision": "48e31a01d05bbdc082454484a79bc663",
    "url": "robots.txt"
  }
/tmp/tmp.m7nFVASGDh$ cat robots.txt | md5sum
48e31a01d05bbdc082454484a79bc663  -
/tmp/tmp.m7nFVASGDh$ cat precache-manifest.*.js | grep -C 1 manifest
    "revision": "8aecb31893b276a119b944e6d023127f",
    "url": "manifest.json"
  },
/tmp/tmp.m7nFVASGDh$ cat manifest.json | md5sum
8aecb31893b276a119b944e6d023127f  -
/tmp/tmp.m7nFVASGDh$ cat precache-manifest.*.js | grep -C 1 index
    "revision": "d62f97ebf178d86897b025754caf96fb",
    "url": "index.html"
  },
/tmp/tmp.m7nFVASGDh$ cat index.html | md5sum
49b4f9d769a4aa5913f9de8adec8eb55  -

Is it possible that something is post-processing the index.html?

peterpeterparker commented 4 years ago

not really unfortunately, I rather like to stick to default bundling from webpack and workbox behavior

nmattia commented 4 years ago

For reference: the culprit was the deckdeckgo-starter plugin: https://github.com/deckgo/deckdeckgo-starter/blob/3c829d2f9a5b9257b98a7315356ceb7f6920ede7/webpack.config.js#L66