From 67f6dcd1fed7df6029126d537ad49042fce96e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BD=AA?= Date: Tue, 29 Nov 2022 11:56:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=BE=E7=89=87hash=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0404=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/constant.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/constant.ts b/build/constant.ts index 6b607674..9d6ca339 100644 --- a/build/constant.ts +++ b/build/constant.ts @@ -7,7 +7,7 @@ export const prefix = `monaco-editor/esm/vs` // chunk 警告大小 export const chunkSizeWarningLimit = 2000 -// 禁用 brotli 压缩大小报告 +// 禁用 brotli 压缩大小报告A export const brotliSize = false // 分包 @@ -17,7 +17,7 @@ export const rollupOptions = { entryFileNames: 'static/js/[name]-[hash].js', assetFileNames: (chunkInfo) => { if(['.png', '.jpg', '.jpeg'].includes(path.extname(chunkInfo.name))) { - return `static/png/[name].[ext]` + return `static/[ext]/[name].[ext]` } return `static/[ext]/[name]-[hash].[ext]` },