This commit is contained in:
神仙都没用 2024-04-26 21:48:44 +08:00
parent e391548a43
commit de2869bb8a
5 changed files with 8 additions and 8 deletions

View File

@ -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",

View File

@ -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) => {
// 通知客户端刷新

View File

@ -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": {

View File

@ -12,7 +12,7 @@ export async function virtual(): Promise<Plugin> {
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) => {

View File

@ -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