Hi I'm new to angular2 and angular-cli, great work for this command line tool.
Regards, Tomaz
Yes you will got 404. In your index.html under dist. Try to change the path example below:
src="myAngular2/vendor/es6-shim/es6-shim.js
I think ng build -prod
had some issues. But try to build just ng build
If you're serving it under http://localhost/myAngular2
, you need to change the <base href="/">
tag in the generated dist/index.html
.
Currently there is no way of doing it automatically, but there is an issue for it here https://github.com/angular/angular-cli/issues/646
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
If you're serving it under
http://localhost/myAngular2
, you need to change the<base href="/">
tag in the generateddist/index.html
.Currently there is no way of doing it automatically, but there is an issue for it here https://github.com/angular/angular-cli/issues/646