vben
2021-02-09 07c18d602ec47215c0390096a3fa66b40004d041
build/vite/plugin/gzip.ts
@@ -1,6 +1,11 @@
/**
 * Used to package and output gzip. Note that this does not work properly in Vite, the specific reason is still being investigated
 */
import type { Plugin } from 'vite';
import gzipPlugin from 'rollup-plugin-gzip';
import { isBuildGzip } from '../../utils';
import { Plugin } from 'vite';
export function configGzipPlugin(isBuild: boolean): Plugin | Plugin[] {
  const useGzip = isBuild && isBuildGzip();