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

Merge pull request #57 from ls-yannick/fix-build

Revert "fix: vite root directory not taken into account when set"
This commit is contained in:
Xin Chen
2024-09-11 22:50:33 +08:00
committed by GitHub

View File

@@ -42,11 +42,7 @@ 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;
}
outDir = c.build.outDir;
}
CESIUM_BASE_URL = path.posix.join(base, CESIUM_BASE_URL);
const userConfig: UserConfig = {};