Skip to content

Service Worker files ngsw.json and ngsw-worker.js not getting bundled  #12665

@giridharkannan

Description

@giridharkannan

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 7.0.2
Node: 8.11.2
OS: linux x64
Angular: 6.0.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

Package Version

@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 7.0.2
@angular/cdk 6.3.2
@angular/cli 6.2.6
@angular/material 6.3.2
@angular/pwa 0.10.2
@ngtools/webpack 6.0.8
@schematics/angular 7.0.2
@schematics/update 0.8.6
rxjs 6.2.1
typescript 2.7.2
webpack 4.8.3

Repro steps

ng build --prod

The log given by the failure

missing ngsw.json and ngsw-worker.js in dist

Desired functionality

must create appropriate ngsw.json and ngsw-worker.js in dist

Mention any other details that might be useful

The service worker files are added in dist folder for the same private repo if Angular CLI : 6.2.6 is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions