mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 21:12:50 +00:00
改用pnpm
This commit is contained in:
parent
6210f18a8b
commit
1e1296d14d
@ -30,16 +30,14 @@ export function virtual(): Plugin {
|
|||||||
},
|
},
|
||||||
async handleHotUpdate({ file, server }) {
|
async handleHotUpdate({ file, server }) {
|
||||||
// 代码保存时触发
|
// 代码保存时触发
|
||||||
if (!file.includes("build/cool/dist")) {
|
if (!["dist"].some((e) => file.includes(e))) {
|
||||||
const { service } = await createEps();
|
createEps().then((data) => {
|
||||||
|
// 通知客户端刷新
|
||||||
// 通知客户端刷新
|
server.ws.send({
|
||||||
server.ws.send({
|
type: "custom",
|
||||||
type: "custom",
|
event: "eps-update",
|
||||||
event: "eps-update",
|
data
|
||||||
data: {
|
});
|
||||||
service
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
5068
pnpm-lock.yaml
generated
Normal file
5068
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user