/**
 * @name ReplaceUrlPlugin
 * @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,
  });
};
