吉安感知网项目-前端
张含笑
2026-01-21 f62b5dccd3fbd23ff9353f4e7ea5e6d18aa54946
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * @name ReplaceImageUrl
 * @description 替换图片地址
 */
import replaceImageUrl from 'vite-plugin-replace-image-url'
 
export const ReplaceUrlPlugin = () => {
  return replaceImageUrl({
    publicPath: 'https://photo.example.com/miniprogram',
    sourceDir: 'src/static',
    verbose: true,
  })
}