My index.html file of angular2 has following content:
I want that, when I build it in (npm run build)default mode (development mode), it should be
<base href="/">
But When I build it in production mode (npm run build --target=production), it should be
<base href="/new/">
I am expert in angular1, but new to angular2, but have tried to add a variable for base_url in index.ts file but that doesn't seems to be working.
I expect there muust be a quicker way to solve this, can anyone please help here.