This commit is contained in:
sexygoat
2026-03-31 18:41:52 +08:00
commit 3c62cc1cd1
527 changed files with 96725 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/**
* @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,
});
};