Summary
It's also automatically injected into sw.js generated.
from https://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker
After npm run build the search find -name sw.js does not finds nothing. So sw.js isn't generated.
My project:
https://github.com/vporton/carbon-flow_colony/tree/86c1013c88f7608a6c6484cb911cf1ef6ba10c9b
Versions
next-pwa: 5.6.0
next:14.0.3
How To Reproduce
Steps to reproduce the behavior:
- Download my project
npm i
npm run build
find -name sw.js
- The file is not found.
Expected Behaviors
Create sw.js file, because it is so documented.
Additional Context
If sw.js should not be generated, update your docs at
https://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker
Summary
from https://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker
After
npm run buildthe searchfind -name sw.jsdoes not finds nothing. Sosw.jsisn't generated.My project:
https://github.com/vporton/carbon-flow_colony/tree/86c1013c88f7608a6c6484cb911cf1ef6ba10c9b
Versions
next-pwa: 5.6.0next:14.0.3How To Reproduce
Steps to reproduce the behavior:
npm inpm run buildfind -name sw.jsExpected Behaviors
Create
sw.jsfile, because it is so documented.Additional Context
If
sw.jsshould not be generated, update your docs athttps://github.com/shadowwalker/next-pwa/tree/master/examples/custom-ts-worker