I have to use a third party script library in two version modes, a dev sandboxed one and a prod version.
I was observing angular-cli.json, whose excerpt looks like:
...
**
"scripts": [ ],
**
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
...
Is it possible to load scripts by the environment mode? Like:
...
"script": [
"dev": "./dev-script.js",
"prod": "./prod-script.js"
]
...
I am a lit bit new to Angular 4/5 and I reached this post. The problem is that the library loading is conditioned not the "dev" or "prod" mode. I would like something more transparent.
Any clues?