angular-seed icon indicating copy to clipboard operation
angular-seed copied to clipboard

Injection of external dependencies does not seem to work for build.prod

Open seustachi opened this issue 10 years ago • 1 comments

I tried to follow the instructions of the page : https://github.com/mgechev/angular2-seed/wiki/Add-external-scripts-and-styles

Maybe I don't understand what is supposed to be produced.

In the case of the DEV build, it works as I expect it to : I get (or it get injected elsewhere, depending of the configuration)

`

`

However, in the case of PROD, nothing is injected in index.html (+ I would expect the file to be copied somewhere in the dist folder, in order to have a self-contained, deployable app).

So I believe there is something broken in case of PROD build for external dependencies injection

seustachi avatar Aug 31 '16 15:08 seustachi

For prod bootstrap will get part of app.js file. Take a look at build.bundles.ts.

mgechev avatar Aug 31 '16 16:08 mgechev