first
This commit is contained in:
12
build/plugins/cleanImage.ts
Normal file
12
build/plugins/cleanImage.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @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/**'],
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user