1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Merge pull request #46 from jfayot/fix_root_not_taken_into_account

fix: vite root directory not taken into account when set
This commit is contained in:
Xin Chen
2023-12-02 14:22:14 +08:00
committed by GitHub

View File

@@ -37,8 +37,12 @@ export default function vitePluginCesium(options: VitePluginCesiumOptions = {}):
if (base === '') base = './';
}
if (c.build?.outDir) {
if (c.root !== undefined) {
outDir = path.join(c.root, c.build.outDir);
} else {
outDir = c.build.outDir;
}
}
CESIUM_BASE_URL = path.posix.join(base, CESIUM_BASE_URL);
const userConfig: UserConfig = {};
if (!isBuild) {