For various reasons, I need to have the index.html file for my Angular2 application separate from all other files for the application (javascript, vendor files, assets, etc.). All other files should also be in a subdirectory of my domain. Here is an example:
assets/
my_app_assets/
main.js
app/
vendor/
html/
index.html
I know how to tell the assembly process of angular-cli to output files like this, but I can’t understand for life how to specify relative paths in index.htmlto point to domain.com/assets/my_app_assets/main.jsinstead domain.com/main.js.
source
share