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

CESIUM_BASE_URL不能设置 #19

@stznsln-damn

Description

@stznsln-damn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions