Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

CESIUM_BASE_URL不能设置 #19

Open
stznsln-damn opened this issue Jan 7, 2022 · 0 comments
Open

CESIUM_BASE_URL不能设置 #19

stznsln-damn opened this issue Jan 7, 2022 · 0 comments

Comments

@stznsln-damn
Copy link

我在vue.config.js中的configureWebpack加入的DefinePlugin中的CESIUM_BASE_URL会被插件覆盖。
image
这里获取不到publicPath,我在vue.config.js中设置的publicPath是./ ,vue-cli会对./做处理
图里的opts.publicPath拿到的是空字符串。
CESIUM_BASE_URL为空字符串的时候会请求不到Cesium的资源。
我的服务器地址前面有路径,不是直接在域名后面。
image
像这样,Cesium就找不到依赖的文件

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant