From 932a390f81fa724fbb6589ab255a8bcc53649139 Mon Sep 17 00:00:00 2001 From: Nshen Date: Sat, 6 Mar 2021 16:36:51 +0800 Subject: [PATCH] fix path check --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index de5b388..8508404 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ export default function (): Plugin { async buildStart(options) { try { - const exists = await fs.pathExists('public/cesium/Assets'); + const exists = await fs.pathExists(path.join(publicPath, 'cesium/Assets')); if (!exists) { await fs.copy(path.join(cesiumBuildPath, 'Assets'), path.join(publicPath, 'cesium/Assets')); await fs.copy(path.join(cesiumBuildPath, 'ThirdParty'), path.join(publicPath, 'cesium/ThirdParty'));