Skip to content

Commit

Permalink
Merge pull request #57 from ls-yannick/fix-build
Browse files Browse the repository at this point in the history
Revert "fix: vite root directory not taken into account when set"
  • Loading branch information
nshen authored Sep 11, 2024
2 parents 8512590 + 175e381 commit b1a756f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit b1a756f

Please sign in to comment.