Skip to content

path in index #2568

Closed
Closed
@erhard

Description

@erhard

OS?

all OSes

Versions.

1.0.0 beta 16

If you programm the angular app as part of another app for example Rails application the path of the css file and the javascriptfile is relativ to the public dir. If you put the angular part in for example public/ang the js and css file should have the path "ang/main.js in the index.html to load the javascripts and css.

Example 👍

the generated (ng build --prod) and modified index.html

<script type="text/javascript" src="apollo/ang/inline.js"></script><script type="text/javascript" src="apollo/ang/styles.e87a73ae6c0622a05f75.bundle.js"></script><script type="text/javascript" src="apollo/ang/main.99efe10dac980567b9ae.bundle.js"></script></body>
</html>

this should be done via ng build --path "apollo/ang"

This feature would be very helpful to integrate angular2 with angular-cli in other application

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