Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(build): add publicPath support via command and angular-cli.json #3285
Add publicPath option for webpack.
User can specify publicPath via --deploy-url / -d from command line or add deployUrl to angular-cli.json
It can solve following issues:
It is very helpful to solve resources url and route lazying load issues for those applications which have different static files paths such as ASP.NET MVC.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
Once you've signed, please reply here (e.g.
This was referenced
Nov 25, 2016
Dec 1, 2016
@mmc41 I have the same scenario as you. I need to serve (and deploy) app as something like
I just set it like this:
Interesting. I believe I got it working with
Maybe just setting the
@mmc41 this PR is only for build, it does not add the functionality to
So you'd normally just run
The recommended way for such options as defaults is to create an npm script that calls the command with the options you need.
And you call it like: