-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
About baseUrl option #4962
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
Comments
我用中文再复述一遍 我们公司现有的工作流、网关LB等,不支持直接将站点映射为一个CDN路径。所以我们之前的方案是 但是现在 |
但是事实上 路由是另一个问题了,参见 #4304 (comment) 应该算是一个 bug,但我暂时没有想到好的办法分别针对这些场景提供合适的默认值。如果你有好的想法的话欢迎提供意见…… |
好的哦 谢谢么么哒~ @sodatea |
Version
4.1.1
Reproduction link
https://github.com/vuejs/vue-cli
Environment info
Steps to reproduce
i have a
vue.config.js
like this:What is expected?
<%= BASE_URL %>favicon.ico
should outputfavicon.ico
, because i not definedBASE_URL
option (whenBASE_URL
not deprecated)What is actually happening?
<%= BASE_URL %>favicon.ico
output//qn.cache.***.cn/***/admin/favicon.ico
note: I just tried to illustrate the problem with favicon
My company have a common cdn, every project has a identity prefix. in our workflow
index.html
need self host, but assetsDir will upload to cdn.when
BASE_URL
not deprecated, i can setpublicPath
andassetsDir
to get expected.so, now how can i do?
The text was updated successfully, but these errors were encountered: