-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build --watch does not generate ngsw pwa workers. #16883
Comments
This is actually by design. Maybe @clydin would know the exactly details why under watch these are not generated though. |
Well, I just pulled my remaining hairs out by design then... At least a warning and an option to turn this off would be great, because I am usually working with ng build --watch running in the background, and spent hours trying to figure out why they don't get generated |
Talked with @clydin today and it seems that As a result, this seems to be mostly an oversight. We don't see any reason Most likely somewhere in the CLI we are checking This is just a bug we'll need to look into more. |
https://stackoverflow.com/a/34161385 So serving a PWA locally shouldn't be a problem anymore, and also there may be more complicated setups where there is a valid certificate in place, for example I am using ng serve to serve PWA locally. I have an SSL certificate for a domain I own, and set up port forwarding for that host to my locally served application. I am using this for development only of course, and would benefit from ng serve --watch building the PWA files to be served. |
Should also look into |
…when running build in watch mode Closes #16883
…when running build in watch mode Closes #16883
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. |
🐞 Bug report
ng build --watch does not generate ngsw-worker.js, and siblings.
Command (mark with an
x
)Is this a regression?
Not sure. Had the same problem with angular 8, figured out it was the watch flag only after i upgraded to 9.
Description
ng build --watch --prod
: no ngsw-worker & siblings under dist/projectng build --watch --prod
: ngsw-worker & siblings are generated under dist/project🔬 Minimal Reproduction
new new foo
cd foo
ng add @angular/pwa
ng build --watch --prod
🌍 Your Environment
The text was updated successfully, but these errors were encountered: