Wrong registration path of worker-basic.min.js
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ x ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.3.0 node: 8.1.2 os: win32 x64 @angular/common: 4.3.4 @angular/compiler: 4.3.4 @angular/core: 4.3.4 @angular/forms: 4.3.4 @angular/platform-browser: 4.3.4 @angular/platform-browser-dynamic: 4.3.4 @angular/router: 4.3.4 @angular/cli: 1.3.0 @angular/compiler-cli: 4.3.4 @angular/language-service: 4.3.4 @angular/service-worker: 1.0.0-beta.16
Repro steps.
“serviceWorker”: true in angular-cli.json
Desired functionality.
sw-register.[hash].bundle.js
contains navigator.serviceWorker.register("worker-basic.min.js")
If sw-register.[hash].bundle.js
is located in folder, and the url is: domain.com/bundles/sw-register.[hash].bundle.js
, browser searches for worker-basic.min.js
in the root folder, like this: domain.com/worker-basic.min.js
I expect that the path to worker-basic.min.js should be bundles/worker-basic.min.js
Are there any workarounds?
Mention any other details that might be useful.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
I am closing this issue because it was raised by me, and there were a lot of changes regarding service working during the last year. I can not replicate this issue now.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.