diff --git a/package.json b/package.json index 6c6fe83..af58f99 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "xlsx": "^0.18.5" }, "devDependencies": { - "@cool-vue/vite-plugin": "^7.1.0", + "@cool-vue/vite-plugin": "^7.1.1", "@types/file-saver": "^2.0.7", "@types/lodash-es": "^4.17.8", "@types/mockjs": "^1.0.7", diff --git a/packages/vite-plugin/dist/index.js b/packages/vite-plugin/dist/index.js index 5b93daf..9aa7175 100644 --- a/packages/vite-plugin/dist/index.js +++ b/packages/vite-plugin/dist/index.js @@ -730,7 +730,7 @@ name: "vite-cool-virtual", enforce: "pre", handleHotUpdate({ file, server }) { - if (!["pages.json", "dist", "eps.json"].some((e) => file.includes(e))) { + if (!["pages.json", "dist", "build/cool"].some((e) => file.includes(e))) { createCtx(); createEps().then((data) => { // 通知客户端刷新 diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index dcdeb78..79e6761 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cool-vue/vite-plugin", - "version": "7.1.0", + "version": "7.1.1", "description": "cool-admin/cool-uni builder", "main": "/dist/index.js", "scripts": { diff --git a/packages/vite-plugin/src/virtual.ts b/packages/vite-plugin/src/virtual.ts index 6760fea..764d436 100644 --- a/packages/vite-plugin/src/virtual.ts +++ b/packages/vite-plugin/src/virtual.ts @@ -12,7 +12,7 @@ export async function virtual(): Promise { name: "vite-cool-virtual", enforce: "pre", handleHotUpdate({ file, server }) { - if (!["pages.json", "dist", "eps.json"].some((e) => file.includes(e))) { + if (!["pages.json", "dist", "build/cool"].some((e) => file.includes(e))) { createCtx(); createEps().then((data) => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5da87c..e54ad2f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -86,8 +86,8 @@ dependencies: devDependencies: '@cool-vue/vite-plugin': - specifier: ^7.1.0 - version: 7.1.0 + specifier: ^7.1.1 + version: 7.1.1 '@types/file-saver': specifier: ^2.0.7 version: 2.0.7 @@ -482,8 +482,8 @@ packages: - typescript dev: false - /@cool-vue/vite-plugin@7.1.0: - resolution: {integrity: sha512-2UGMumnSdAlAlID0jJLLbTv8qc3U6pdfjvTOGuFtRlBbnj3R1qW+znlmjgDk9ifLAk/ra90ghCZ6sLsNADeFrg==} + /@cool-vue/vite-plugin@7.1.1: + resolution: {integrity: sha512-bCf0+ICwjYWYdS3DOrgr74YulvQLVjzNKPiTeL32pTyTecmFSOqbiQ+PbVYxIPHtZjnNjupWOz5vYm1kmBscWQ==} dependencies: '@vue/compiler-sfc': 3.4.25 axios: 1.6.8