It is now possible, to get not flat structure of project with ng build
, so instead of this:
index.html
main.bundle.js
styles.bundle.js
...
You cannot do that by using the ng build command alone, you can do it by using the following the commands one after the other.
ng build --output-path="dist/scripts" --deployUrl="scripts/"
and
move "dist\scripts\index.html" "dist"
The last command works considering that you are using windows (is just a copy/paste, the magic is done by the --deployUrl
command).