From 62d2e35eda8a14d6f2880b5a71ef037c1286f4cb Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Fri, 6 May 2022 17:48:42 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20rollupOptions=20?=
 =?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 vite.config.ts | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 724bf71..77c3661 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -56,15 +56,8 @@ export default (): UserConfigExport => {
           comments: false
         }
       },
-      assetsDir: "static/assets",
-      /** 静态资源打包到 dist 下的不同目录 */
-      rollupOptions: {
-        output: {
-          chunkFileNames: "static/js/[name]-[hash].js",
-          entryFileNames: "static/js/[name]-[hash].js",
-          assetFileNames: "static/[ext]/[name]-[hash].[ext]"
-        }
-      }
+      /** 打包后静态资源目录 */
+      assetsDir: "static"
     },
     /** vite 插件 */
     plugins: [