Skip to content

Commit 15d0fef

Browse files
committed
Fix: load widgets.css failed on windows #27
1 parent 5f896ec commit 15d0fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function vitePluginCesium(
7878

7979
configureServer({ middlewares }) {
8080
const cesiumPath = path.join(cesiumBuildRootPath, devMinifyCesium ? 'Cesium' : 'CesiumUnminified');
81-
middlewares.use(path.join('/', CESIUM_BASE_URL), serveStatic(cesiumPath));
81+
middlewares.use(path.posix.join('/', CESIUM_BASE_URL), serveStatic(cesiumPath));
8282
},
8383

8484
async closeBundle() {

0 commit comments

Comments
 (0)