张含笑
2025-11-07 450dc8a1e4e0d643817ffd0eee04b938cc84af74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * @name cleanImagePlugin
 * @description 清除构建后的图片资源
 */
import CleanBuild from "vite-plugin-clean-build"
 
export const CleanImagePlugin = () => {
  return CleanBuild({
    outputDir: "dist/build/mp-weixin",
    patterns: [
      "static/images/**",
      "!static/images/logo.png",
      "!static/images/tabbar/**"
    ]
  })
}