Merge pull request #45 from FairyScript/main
fix: config base not be used when c.base is ''
This commit is contained in:
@@ -32,7 +32,7 @@ export default function vitePluginCesium(options: VitePluginCesiumOptions = {}):
|
|||||||
|
|
||||||
config(c, { command }) {
|
config(c, { command }) {
|
||||||
isBuild = command === 'build';
|
isBuild = command === 'build';
|
||||||
if (c.base) {
|
if (c.base !== undefined) {
|
||||||
base = c.base;
|
base = c.base;
|
||||||
if (base === '') base = './';
|
if (base === '') base = './';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user