-
Notifications
You must be signed in to change notification settings - Fork 12k
Support different index for different apps #7124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There's already support for different index.html files with a combination of root and outDir. Example:
Edit: Example (see paths):
|
@grizzm0 Thanks! I was worried that typescript files(main, polyfills, tests) that were not in |
Unfortunately @grizzm0 's solution did not work with AOT, nor with lazy loaded modules of a shared library. I have an example which replicates the existing angular-cli issues. With @marcincichocki 's suggestion these issues can be temporarily avoided till they are fixed. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Desired functionality.
App configuration in
angular-cli.json
should allow to use different input and output path for index file when working with multiple apps.index.html
might be similiar, but some parts can differ(for example elements within root component/usage of assets based on app or different title in<head/>
)current behavoir
app1
will generate folders too:dist/apps/app1/index.html
app2
requires additional configuration, as some servers will not send this file by defaultpossible solution
Support additional type in
index
property:Comparison with current behavior
and
would produce same output. Please note that there is no breaking changes, as
would be equivalent to:
The text was updated successfully, but these errors were encountered: