Uh oh!
There was an error while loading. Please reload this page.
feat(build): add publicPath support via command and angular-cli.json - #3285
Conversation
googlebot
commented
Nov 25, 2016
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). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
changLiuUNSW
commented
Nov 25, 2016
I signed it! |
googlebot
commented
Nov 25, 2016
CLAs look good, thanks! |
c5a5523 to
beac9b3Comparemwaa
commented
Nov 27, 2016
What's the status of this? |
naveedahmed1
commented
Nov 27, 2016
@filipesilva can this be included in next release? |
4eefd83 to
2ebdd7bComparechangLiuUNSW
commented
Dec 1, 2016
@filipesilva Could you please review this PR? Thx |
2ebdd7b to
1e5882bComparemattetti
commented
Dec 2, 2016
We also had to use a similar patch in our app, let's hope this gets merged ASAP |
0acd542 to
392caf0Comparemildfuzz
commented
Dec 5, 2016
any chance this could get merged? |
halfonf
commented
Jan 10, 2017
Where can I find the documentation about this ? Thx |
changLiuUNSW
commented
Jan 11, 2017
@halfonf |
halfonf
commented
Jan 11, 2017
@changLiuUNSW From which version is it enabled ? |
changLiuUNSW
commented
Jan 11, 2017
Not publish yet. You have to wait.... |
halfonf
commented
Jan 11, 2017
thx I hope it will be released soon :) |
Hi Chang I saw on stackoverflow that you automatized the cshtml edition. Thx a lot Found a solution thx anyway |
mmc41
commented
Jan 13, 2017
Saw that this new feature is released now. How is it actually used? |
Meligy
commented
Jan 13, 2017
@mmc41 I have the same scenario as you. I need to serve (and deploy) app as something like I just set it like this: |
mmc41
commented
Jan 13, 2017
@Meligy I am also using -bh but could only get it to work for ng build. If I try it with ng serve, I get an error that the option is not recognised. Thus I can serve the finished distribution under a "ui/" subpath but not when I am developing and just using "ng serve" |
Interesting. I believe I got it working with Maybe just setting the |
filipesilva
commented
Jan 13, 2017
@mmc41 this PR is only for build, it does not add the functionality to When running So you'd normally just run |
Bulan
commented
Jan 13, 2017
Is there any documentation around this somewhere? Can I add this to be the default somewhere for |
Meligy
commented
Jan 14, 2017
The recommended way for such options as defaults is to create an npm script that calls the command with the options you need. So, in And you call it like: |
igormalyk
commented
Jan 31, 2017
@changLiuUNSW Hello, your PR is very valuable as it solves the exact same issue I have. The only thing I also need to be able to do this in dev as well with |
@igormalyk |
…ngular#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: Change the public URL address of the output files (different from baseUrl). Manipulate the request url for chunk js files. 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. Fixesangular#3136Fixesangular#2960Fixesangular#2276Fixesangular#2241Fixesangular#3344
@igormalyk support for |
Malabarba
commented
Oct 2, 2017
Hi there. Has this feature made it to a release yet? |
filipesilva
commented
Oct 2, 2017
@Malabarba this has been released a long time ago. If you're experiencing problems with it please open an issue with reproduction steps for us to investigate. |
Malabarba
commented
Oct 2, 2017
Sorry. I think I may have misunderstood the feature. So, I guess what I'm saying is sorry for the noise. 🙂 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.
This should fix
#3136
#2960
#2276
#2241
#3344