mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
webpack: precache oss-licenses.json
This works around the oss-licenses.json file not being picked up by the workbox plugin. Closes: https://github.com/pybricks/pybricks-code/issues/1245
This commit is contained in:
committed by
David Lechner
parent
61098453c7
commit
efec127b8e
@@ -726,6 +726,10 @@ module.exports = function (webpackEnv) {
|
||||
// to make lazy-loading failure scenarios less likely.
|
||||
// See https://github.com/cra-template/pwa/issues/13#issuecomment-722667270
|
||||
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
|
||||
additionalManifestEntries: [
|
||||
// FIXME: this path should have a hash
|
||||
{ url: 'static/oss-licenses.json', revision: null },
|
||||
],
|
||||
}),
|
||||
// TypeScript type checking
|
||||
useTypeScript &&
|
||||
|
||||
Reference in New Issue
Block a user