罗广辉
2025-10-15 3ff017049bbf0ba93e27c3c8e05a91cbb2a34511
build/plugins/replaceUrl.js
@@ -2,12 +2,12 @@
 * @name ReplaceImageUrl
 * @description 替换图片地址
 */
import replaceImageUrl from 'vite-plugin-replace-image-url';
import replaceImageUrl from 'vite-plugin-replace-image-url'
export const ReplaceUrlPlugin = () => {
  return replaceImageUrl({
    publicPath: 'https://photo.example.com/miniprogram',
    sourceDir: 'src/static',
    verbose: true,
  });
};
  })
}