feat: 新增 preview 模式
This commit is contained in:
parent
db3c38a333
commit
fa061c42ad
5
Makefile
5
Makefile
@ -6,15 +6,20 @@ dev:
|
|||||||
dist:
|
dist:
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
view:
|
||||||
|
npm run preview
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
new:
|
new:
|
||||||
npm run new
|
npm run new
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo " make dev [npm run dev] 开发模式"
|
@echo " make dev [npm run dev] 开发模式"
|
||||||
@echo " make dist [npm run build] 编译模式"
|
@echo " make dist [npm run build] 编译模式"
|
||||||
|
@echo " make view [npm run preview] 预览打包文件"
|
||||||
@echo " make new [npm run lint] 通过自动化流程创建代码"
|
@echo " make new [npm run lint] 通过自动化流程创建代码"
|
||||||
@echo " make lint [npm run new] 格式校验"
|
@echo " make lint [npm run new] 格式校验"
|
@ -4,6 +4,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host",
|
"dev": "vite --host",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
"new": "plop --plopfile ./plop/plopfile.js",
|
"new": "plop --plopfile ./plop/plopfile.js",
|
||||||
"postinstall": "husky install"
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user