chore: add some notes

This commit is contained in:
vben
2021-02-09 23:47:14 +08:00
parent 23657547ab
commit 07c18d602e
22 changed files with 113 additions and 84 deletions

View File

@@ -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();