Skip to content

Commit

Permalink
Merge pull request #45 from FairyScript/main
Browse files Browse the repository at this point in the history
fix: config base not be used when c.base is ''
  • Loading branch information
nshen authored Dec 2, 2023
2 parents 3eefe02 + e4b5802 commit f52a8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function vitePluginCesium(options: VitePluginCesiumOptions = {}):

config(c, { command }) {
isBuild = command === 'build';
if (c.base) {
if (c.base !== undefined) {
base = c.base;
if (base === '') base = './';
}
Expand Down

0 comments on commit f52a8ef

Please sign in to comment.