mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 09:47:43 +08:00
chore(play): use the postinstall hook to run the init script (#18385)
This commit is contained in:
parent
9a8074c56c
commit
1ff3f6ba38
@ -4,7 +4,8 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"postinstall": "node ./scripts/init.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@element-plus/icons-vue": "^2.3.1",
|
||||
|
@ -17,7 +17,6 @@ import {
|
||||
projRoot,
|
||||
} from '@element-plus/build-utils'
|
||||
import type { Plugin } from 'vite'
|
||||
import './vite.init'
|
||||
|
||||
const esbuildPlugin = (): Plugin => ({
|
||||
...esbuild({
|
||||
|
@ -4,6 +4,6 @@
|
||||
"composite": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["**/vite.config.*", "**/vitest.config.*", "**/vite.init.*"],
|
||||
"include": ["**/vite.config.*", "**/vitest.config.*"],
|
||||
"exclude": ["docs"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user