소스 검색

从vite1升级到vite2

lighter 4 년 전
부모
커밋
9addd8b74a
3개의 변경된 파일769개의 추가작업 그리고 1904개의 파일을 삭제
  1. 759 1897
      package-lock.json
  2. 4 2
      package.json
  3. 6 5
      vite.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 759 - 1897
package-lock.json


+ 4 - 2
package.json

@@ -3,7 +3,8 @@
   "version": "0.0.0",
   "scripts": {
     "dev": "vite",
-    "build": "vite build"
+    "build": "vite build",
+    "serve": "vite preview"
   },
   "dependencies": {
     "axios": "^0.21.1",
@@ -14,7 +15,8 @@
     "vuex": "^4.0.0-rc.2"
   },
   "devDependencies": {
+    "@vitejs/plugin-vue": "^1.1.5",
     "@vue/compiler-sfc": "^3.0.5",
-    "vite": "^1.0.0-rc.13"
+    "vite": "^2.0.5"
   }
 }

+ 6 - 5
vite.config.js

@@ -1,5 +1,6 @@
-module.exports = {
-  open: true,
-  https: false,
-  port: 81,
-}
+import { defineConfig } from 'vite'
+import vue from '@vitejs/plugin-vue'
+
+export default defineConfig({
+  plugins: [vue()],
+})

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.