mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 19:42:08 +08:00
16 lines
284 B
TypeScript
16 lines
284 B
TypeScript
/**
|
|
* @name ConfigCompressPlugin
|
|
* @description 开启.gz压缩
|
|
*/
|
|
import viteCompression from 'vite-plugin-compression';
|
|
|
|
export const ConfigCompressPlugin = () => {
|
|
return viteCompression({
|
|
ext: '.gz',
|
|
verbose: true,
|
|
deleteOriginFile: false,
|
|
});
|
|
|
|
return [];
|
|
};
|