Adding prefix path to static files in Angular using angular-cli : <p>I have an existing django project where I am serving static files over /static/ path. I am migrating a part of the application to angular2, to be specific mobile version of the site. </p>

<p>Adding <code>&lt;base href="/"&gt;</code> to index.html loads static files www.example.com/main.js gets 404 here.
Adding <code>&lt;base href="/static/"&gt;</code> to index.html loads static files correctly, but when the application bootstraps, it changes the url to /static/ (i am using routers), although my url should be /order/.</p>

<p>is there a way of using base href as / but adding prefix to script and style files using angular-cli</p>

<p>using version <code>ng --version</code></p>

<pre><code>@angular/cli: 1.0.0-rc.0
node: 6.9.1
os: win32 x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.0
@angular/compiler-cli: 2.4.9
</code></pre>
