-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor (build): refactor the logic to set publicPath #4090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f1733e4
to
07d9ba4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix also removes the functionality of using deployUrl
via the config file though.
If that functionality is to be removed, then the code for it in the config needs to be removed as well.
@filipesilva This fix will not remove functionality of using
We also have e2e test to cover the functionality of using The test passed with my change |
07d9ba4
to
b972f88
Compare
Ok I understand now. I'm working on a big PR to refactor how these commands work though, so I'll try to introduce this logic there as well in case this doesn't get merged before. |
Superseded by #4105 |
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. |
If we set
deployUrl
via theangular-cli.json
, theng serve
will be affected as well because we setpublicPath
viaappConfig.deployUrl
in thewebpack-build-common.ts
This PR can solve above issue and also remove duplicated logic
deployUrl || appConfig.deployUrl;
which already exists inbuild-webpack.ts