Skip to content

Commit

Permalink
feat: ✨ vite
Browse files Browse the repository at this point in the history
- 升级vite5 beta
  • Loading branch information
jsxiaosi committed Nov 20, 2023
1 parent b410194 commit b829131
Show file tree
Hide file tree
Showing 3 changed files with 552 additions and 97 deletions.
4 changes: 2 additions & 2 deletions build/vite/plugin/buildOuteInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export function viteBuildOuteInfo(): Plugin {
// 该插件在 plugin-vue 插件之前执行,这样就可以直接解析到原模板文件
enforce: 'post',
transformIndexHtml: {
enforce: 'post',
transform: () => {},
order: 'post',
handler: () => {},
},

configResolved(resolvedConfig) {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"pnpm": ">=8.1.0"
},
"scripts": {
"dev": "vite",
"dev": "VITE_CJS_TRACE=true vite dev",
"build": "vite build",
"staging": "vite build --mode staging",
"serve": "vite preview",
Expand Down Expand Up @@ -82,12 +82,13 @@
"@types/intro.js": "^5.1.1",
"@types/lodash-es": "^4.17.9",
"@types/marked": "^5.0.1",
"@types/mockjs": "^1.0.10",
"@types/node": "*",
"@types/nprogress": "^0.2.0",
"@types/qs": "^6.9.8",
"@types/sortablejs": "^1.15.2",
"@vitejs/plugin-vue": "^4.3.4",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vitejs/plugin-vue": "^4.5.0",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue/test-utils": "^2.4.1",
"autoprefixer": "^10.4.15",
"conventional-changelog-cli": "^4.0.0",
Expand Down Expand Up @@ -121,12 +122,12 @@
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"unplugin-element-plus": "^0.8.0",
"vite": "^4.4.9",
"vite": "^5.0.0-beta.19",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-imagemin": "^0.6.1",
"vite-plugin-inspect": "^0.7.38",
"vite-plugin-linter": "^2.0.5",
"vite-plugin-mock": "2.9.6",
"vite-plugin-mock": "2.9.8",
"vite-plugin-pwa": "^0.16.4",
"vite-plugin-style-import": "^2.0.0",
"vite-plugin-svg-icons": "^2.0.1",
Expand Down
Loading

0 comments on commit b829131

Please sign in to comment.