Skip to content

[Question] How to set relative paths for scripts, styles, etc, injected to index.html #3557

@lexigren

Description

@lexigren

OS?

Ubuntu

Versions.

1.0.0-beta.17

My angular2 application, built with ng build --prod, is mounted to https://domain/app.
The problem is that scripts and styles injected in index.html have paths like src="styles.8e0edbbd6ad2cb36be49.bundle.js", so page is trying to look for them in root.
How to change it to src="./styles.8e0edbbd6ad2cb36be49.bundle.js"?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions