Skip to content

Generated output in ngsw.json is wrong #23422

@zizizi17

Description

@zizizi17

I'm submitting a...


[x] Bug report 
[ ] Feature request

Current behavior

When run the build script with the inline argument of --base-href /current/ and in the ngsw.json file use the absolute path for the files, it produces the path /current/index.html in the built ngsw.json. Using of the relative path in the ngsw.json does not help.

Expected behavior

Either using the relative path in the ngsw.json or generating the output due to the --base-href value.

Environment


Angular version: 5.0.0
@angular/service-worker: 5.2.10

Browser:
- [x] Chrome (desktop) version 65
For Tooling issues:
- Node version: 8.9.4
- Platform: Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions