1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

fix path check

This commit is contained in:
Nshen
2021-03-06 16:36:51 +08:00
committed by nshen
parent b876febcdc
commit 932a390f81

View File

@@ -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'));