You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
212 B
TypeScript
7 lines
212 B
TypeScript
1 year ago
|
import ViteCompression from 'vite-plugin-compression'
|
||
|
|
||
|
export default (viteEnv: ImportMetaEnv) => {
|
||
|
const { VITE_COMPRESS_TYPE = 'gzip' } = viteEnv
|
||
|
return ViteCompression({ algorithm: VITE_COMPRESS_TYPE })
|
||
|
}
|