-
Notifications
You must be signed in to change notification settings - Fork 12k
Prod build generates empty urls and patterns in ngsw.json for Angular Service Worker #10297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are several problems afaict:
|
About point #2; It seems like #3 is simply not understanding the contracts between the two interfaces. I'm curious how it passes our tests (which means we need to improve coverage). Seems easy to fix if that's the issue. Whoever fixes this should also include a test that fails before the fix and succeeds after. |
Have a PR for this in angular/devkit#709. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Angular CLI: 6.0.0-rc.3
Node: 9.11.1
OS: darwin x64
Angular: 6.0.0-rc.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Repro steps
ng new testApp2
ng add @angular/pwa --project=testApp2
npm i @angular/service-worker@next --save (to workaround angular/devkit#679 )
ng build --prod
Observed behavior
resulting ngsw.json
Desired behavior
urls and patterns should be populated by the entries reflecting the assets in dist/testApp2
Mention any other details that might be useful (optional)
This might be connected to the new folder structure - maybe NGSW CLI is still looking for the files in dist folder instead of dist/[projectName]
CC: @Brocco @alxhub
The text was updated successfully, but these errors were encountered: