Ced Ced - 1 year ago 74
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
contains no
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).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download