feat: 新增 preview 模式

This commit is contained in:
奔跑的面条 2022-06-15 17:30:24 +08:00
parent 5522837b00
commit 5eca551271
2 changed files with 6 additions and 0 deletions

View File

@ -6,15 +6,20 @@ dev:
dist:
npm run build
view:
npm run preview
lint:
npm run lint
new:
npm run new
help:
@echo " make dev [npm run dev] 开发模式"
@echo " make dist [npm run build] 编译模式"
@echo " make view [npm run preview] 预览打包文件"
@echo " make new [npm run lint] 通过自动化流程创建代码"
@echo " make lint [npm run new] 格式校验"

View File

@ -4,6 +4,7 @@
"scripts": {
"dev": "vite --host",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"new": "plop --plopfile ./plop/plopfile.js",
"postinstall": "husky install"
},