mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-01 18:58:10 +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": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
"postinstall": "node ./scripts/init.mjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
"@element-plus/icons-vue": "^2.3.1",
|
||||||
|
@ -17,7 +17,6 @@ import {
|
|||||||
projRoot,
|
projRoot,
|
||||||
} from '@element-plus/build-utils'
|
} from '@element-plus/build-utils'
|
||||||
import type { Plugin } from 'vite'
|
import type { Plugin } from 'vite'
|
||||||
import './vite.init'
|
|
||||||
|
|
||||||
const esbuildPlugin = (): Plugin => ({
|
const esbuildPlugin = (): Plugin => ({
|
||||||
...esbuild({
|
...esbuild({
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"composite": true,
|
"composite": true,
|
||||||
"types": ["node"]
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"include": ["**/vite.config.*", "**/vitest.config.*", "**/vite.init.*"],
|
"include": ["**/vite.config.*", "**/vitest.config.*"],
|
||||||
"exclude": ["docs"]
|
"exclude": ["docs"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user