Ced Ced - 1 year ago 57
HTML Question

index.js has no imports and no systemjs config is created

I just created a new Angular project with

ng new some-name
, but the created
index.html
contains no
<script>
tags and no SystemJS configuration is created.
Is this the correct behavior? I would expect the CLI to create a simple running project.

Answer Source

Yes, that is expected behavior. Webpack is used internally in the cli, which by itself injects all the needed script and style tags dynamically when serving/building.

Run ng serve and see that it should serve successfully (locahost:4200).