You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow configuration for base path to request asset files. #6121
@angular/cli: 1.0.1 .
node: 7.5.0 .
os: darwin x64
Repro steps.
My build target is in ./public/assets directory. The generated files (*.js, *.js.map, index.html) all go into that directory. When the files are generated the script tag urls are like so: http://example.com/file.js
Desired functionality.
I need the script tag urls to be http://example.com/assets/file.js. Notice the /assets/. This is because public is the web root and I'm serving index.html through my backend application. Therefore, when they hit http://example.com, index.html is served even though it's in http://example.com/assets/index.html. I apologize if this is confusing, please ask for clarification if needed.
Activity
bviale commentedon May 4, 2017
I think it can be done through the "deployUrl" node of your .angular-cli.json config file.
If you set
it should do what you are looking for.
Reference : https://github.com/angular/angular-cli/wiki/angular-cli
jaesung2061 commentedon May 5, 2017
@bviale thanks :)
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.