From 58c0f11fe2f23a1be2dec768f9ac02107301a634 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 19 九月 2025 17:30:36 +0800
Subject: [PATCH] 2025.9.19 数据产品(待完成)

---
 vite.config.js |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/vite.config.js b/vite.config.js
index 4f220f0..87f98fa 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -20,14 +20,14 @@
       // allow auto load markdown components under `./src/components/`
       extensions: ['vue', 'md'],
       // allow auto import and register components used in markdown
-      include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
+      include: [/\.vue$/, /\.vue\?vue/, /\.md$/, /\.ts$/],
       resolvers: [
         ElementPlusResolver({
           importStyle: 'sass'
-        }),
+        })
       ],
-      dts: 'src/components.d.ts',
-    }),
+      dts: 'src/components.d.ts'
+    })
     // ElementPlus({
     //   useSource: true,
     // }),
@@ -42,8 +42,8 @@
 
     alias: [
       { find: /^@\//, replacement: `${pathSrc}/` },
-      { find: /^~/, replacement: `` },
-    ],
+      { find: /^~/, replacement: `` }
+    ]
     // extensions: ['.js', '.mjs', '.vue', '.json', '.less', '.css']
   },
   build: {
@@ -52,14 +52,14 @@
       input: path.resolve(__dirname, 'index.html'),
       output: {
         chunkFileNames: 'js/[name].[hash].js',
-        entryFileNames: 'js/[name].[hash].js',
+        entryFileNames: 'js/[name].[hash].js'
         // assetFileNames: "assets/[name].[hash].[ext]",
-      },
-    },
+      }
+    }
   },
   css: {
     postcss: {
-      plugins: [autoprefixer],
+      plugins: [autoprefixer]
     },
     preprocessorOptions: {
       // less: {
@@ -67,8 +67,12 @@
       //   additionalData: `@import "${path.resolve(__dirname, 'src/styles/variable.less')}";`
       // },
       scss: {
-        additionalData: `@use "@/styles/element/index.scss" as *;`,
-      },
-    },
+        additionalData: `@use "@/styles/element/index.scss" as *;`
+      }
+    }
   },
+  server: {
+    host: '0.0.0.0',
+    // port: 5174
+  }
 });

--
Gitblit v1.9.3