Skip to content

about the ng build js&css path #2740

Closed
Closed
@nikejaycn

Description

@nikejaycn

we know ng build can inject created js & css path in the index.html file.

link this:

<script type="text/javascript" src="inline.js"></script>
<script type="text/javascript" src="styles.b52d2076048963e7cbfd.bundle.js"></script>
<script type="text/javascript" src="main.a9bd8f0a1785b67f561a.bundle.js"></script>

but we don't use file physical path, we use the virtual path.
we want this:

<script type="text/javascript" src="/static/files/path/inline.js"></script>
<script type="text/javascript" src="/static/files/path/styles.b52d2076048963e7cbfd.bundle.js"></script>
<script type="text/javascript" src="/static/files/path/main.a9bd8f0a1785b67f561a.bundle.js"></script>

we don't find any configuration options in the angular-cli doc.
so the angular-cli can do that? how?

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