mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-11-29 18:48:31 +08:00
chore: 移除 vite-plugin-restart
This commit is contained in:
parent
4a2538cfe3
commit
84e1581dcf
@ -75,7 +75,6 @@
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
"vite-plugin-pages": "^0.27.0",
|
||||
"vite-plugin-restart": "^0.2.0",
|
||||
"vite-plugin-spritesmith": "^0.1.1",
|
||||
"vite-plugin-svg-icons": "^2.0.1",
|
||||
"vite-plugin-vue-layouts": "^0.6.0",
|
||||
|
@ -53,7 +53,6 @@ specifiers:
|
||||
vite-plugin-html: ^3.2.0
|
||||
vite-plugin-mock: ^2.9.6
|
||||
vite-plugin-pages: ^0.27.0
|
||||
vite-plugin-restart: ^0.2.0
|
||||
vite-plugin-spritesmith: ^0.1.1
|
||||
vite-plugin-svg-icons: ^2.0.1
|
||||
vite-plugin-vue-layouts: ^0.6.0
|
||||
@ -119,7 +118,6 @@ devDependencies:
|
||||
vite-plugin-html: 3.2.0_vite@3.1.8
|
||||
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@3.1.8
|
||||
vite-plugin-pages: 0.27.0_vite@3.1.8
|
||||
vite-plugin-restart: 0.2.0_vite@3.1.8
|
||||
vite-plugin-spritesmith: 0.1.1
|
||||
vite-plugin-svg-icons: 2.0.1_vite@3.1.8
|
||||
vite-plugin-vue-layouts: 0.6.0_nknaiyoma7qglenj4mb2pj2auq
|
||||
@ -7419,15 +7417,6 @@ packages:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/vite-plugin-restart/0.2.0_vite@3.1.8:
|
||||
resolution: {integrity: sha512-DDgZh2EM0b2ZvqMpk3AOiXMP/ZOLhrJhUvcYkV21qbBl85tM5ezzt2OUXamV0wIsOzz3UDFAnLcHs3k6G3QMWw==}
|
||||
peerDependencies:
|
||||
vite: ^2.9.0 || ^3.0.0
|
||||
dependencies:
|
||||
micromatch: 4.0.5
|
||||
vite: 3.1.8_sass@1.55.0
|
||||
dev: true
|
||||
|
||||
/vite-plugin-spritesmith/0.1.1:
|
||||
resolution: {integrity: sha512-y8PI25/FLe+CJr0bI+kOIptWy1fl7AOnZLXhXcb0VyUDAneZlFsFJm+K44lksNgV+0lRojAeMwwP+BhNqqL7Hw==}
|
||||
dependencies:
|
||||
|
@ -2,7 +2,6 @@ import type { PluginOption } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||
|
||||
import createRestart from './restart'
|
||||
import createHtml from './html'
|
||||
import createAutoImport from './auto-import'
|
||||
import createComponents from './components'
|
||||
@ -22,7 +21,6 @@ export default function createVitePlugins(viteEnv, isBuild = false) {
|
||||
}),
|
||||
vueJsx(),
|
||||
]
|
||||
!isBuild && vitePlugins.push(createRestart())
|
||||
vitePlugins.push(createHtml(viteEnv, isBuild))
|
||||
vitePlugins.push(createAutoImport())
|
||||
vitePlugins.push(createComponents())
|
||||
|
@ -1,14 +0,0 @@
|
||||
import fs from 'node:fs'
|
||||
import ViteRestart from 'vite-plugin-restart'
|
||||
|
||||
export default function createRestart() {
|
||||
const pluginsFile: string[] = []
|
||||
fs.readdirSync('vite/plugins').forEach((dirname) => {
|
||||
if (fs.statSync(`vite/plugins/${dirname}`).isFile()) {
|
||||
pluginsFile.push(`vite/plugins/${dirname}`)
|
||||
}
|
||||
})
|
||||
return ViteRestart({
|
||||
restart: pluginsFile,
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue
Block a user