Browse Source

打包试试

1
mo 1 năm trước cách đây
mục cha
commit
1d0a302862
2 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 3 0
      index.html
  2. 4 0
      vite.config.ts

+ 3 - 0
index.html

@@ -1,6 +1,8 @@
 <!DOCTYPE html>
+
 <html lang="zh-CN">
 
+
 <head>
   <meta charset="UTF-8" />
   <link rel="icon" href="/favicon.ico" />
@@ -29,6 +31,7 @@
 <body>
   <div id="app"></div>
   <script type="module" src="/src/main.ts"></script>
+
 </body>
 
 </html>

+ 4 - 0
vite.config.ts

@@ -49,6 +49,10 @@ export default defineConfig({
       ]
     })
   ],
+
+  build: {
+    target: 'es2015'
+  },
   resolve: {
     alias: {
       '@': resolve('./src'),