fix: vite root directory not taken into account when set
This commit is contained in:
		@@ -37,7 +37,11 @@ export default function vitePluginCesium(options: VitePluginCesiumOptions = {}):
 | 
			
		||||
        if (base === '') base = './';
 | 
			
		||||
      }
 | 
			
		||||
      if (c.build?.outDir) {
 | 
			
		||||
        outDir = 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 = {};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user