From 15d0fef38e53e0f5b5e614cc4b9b53ed952e2e11 Mon Sep 17 00:00:00 2001 From: nshen121 Date: Sun, 10 Apr 2022 01:36:58 +0800 Subject: [PATCH] Fix: load widgets.css failed on windows #27 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0a0cf47..723c569 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,7 +78,7 @@ function vitePluginCesium( configureServer({ middlewares }) { const cesiumPath = path.join(cesiumBuildRootPath, devMinifyCesium ? 'Cesium' : 'CesiumUnminified'); - middlewares.use(path.join('/', CESIUM_BASE_URL), serveStatic(cesiumPath)); + middlewares.use(path.posix.join('/', CESIUM_BASE_URL), serveStatic(cesiumPath)); }, async closeBundle() {