diff --git a/Makefile b/Makefile index ede77eec..37f89013 100644 --- a/Makefile +++ b/Makefile @@ -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] 格式校验" \ No newline at end of file diff --git a/package.json b/package.json index b708efa1..f8ce3720 100644 --- a/package.json +++ b/package.json @@ -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" },