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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user