From 739e0a9c2eb96f05f610a863f792024ae666277f Mon Sep 17 00:00:00 2001 From: Hunter <273676636@qq.com> Date: Tue, 26 Apr 2022 18:57:11 +0800 Subject: [PATCH] update vite config --- vite.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.js b/vite.config.js index 2e36d70..fbdcf86 100644 --- a/vite.config.js +++ b/vite.config.js @@ -24,14 +24,14 @@ const config = ({ mode }) => { target: 'es2015', outDir: path.resolve(__dirname, 'dist'), assetsDir: 'assets', - assetsInlineLimit: 1, //8192, + assetsInlineLimit: 8192, sourcemap: isProd ? 'hidden' : true, emptyOutDir: true, rollupOptions: { input: path.resolve(__dirname, 'index.html'), output: { - chunkFileNames: "js/[name].[hash].js", - entryFileNames: "js/[name].[hash].js", + chunkFileNames: 'js/[name].[hash].js', + entryFileNames: 'js/[name].[hash].js', // assetFileNames: "assets/[name].[hash].[ext]", } }