Browse Source

fix: 打包 sourcemap 修复 模板icon替换

sourcemap
leiyuee 1 week ago
parent
commit
f9eb12396b
  1. BIN
      src/assets/images/AiCategories_template.png
  2. BIN
      src/assets/images/AiCategories_template_active.png
  3. 2
      src/layouts/globalPromptPanel/utils.ts
  4. 2
      vite.config.mts

BIN
src/assets/images/AiCategories_template.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
src/assets/images/AiCategories_template_active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

2
src/layouts/globalPromptPanel/utils.ts

@ -35,7 +35,7 @@ export const OTHER_CATEGORY = [
taskSubType: 999, taskSubType: 999,
name: "Template", name: "Template",
icon: new URL("/src/assets/images/AiCategories_template.png", import.meta.url).href, icon: new URL("/src/assets/images/AiCategories_template.png", import.meta.url).href,
activeIcon: new URL("/src/assets/images/AiCategories_template.png", import.meta.url).href, activeIcon: new URL("/src/assets/images/AiCategories_template_active.png", import.meta.url).href,
}, },
]; ];

2
vite.config.mts

@ -54,7 +54,7 @@ export default defineConfig(({ mode }) => {
minify: "esbuild", minify: "esbuild",
cssMinify: true, cssMinify: true,
cssCodeSplit: true, cssCodeSplit: true,
sourcemap: mode !== "production", sourcemap: mode !== "prod",
emptyOutDir: true, emptyOutDir: true,
assetsInlineLimit: 4096, assetsInlineLimit: 4096,
reportCompressedSize: false, reportCompressedSize: false,

Loading…
Cancel
Save