File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 11export interface IPluginOptions {
2- algorithm ?: "gzip" | "brotli" | "deflateRaw" ;
2+ /**
3+ * Compression algorithm
4+ * @default brotli
5+ */
6+ algorithm ?: "gzip" | "brotli" | "deflateRaw" | "deflate" ;
7+ /**
8+ * Compression level
9+ * @default 6
10+ */
11+ level ?: number ;
12+ /**
13+ * Compression threshold
14+ *
15+ * **NOTE**: This option is in bytes.
16+ *
17+ * @default 1024
18+ */
19+ threshold ?: number ;
20+ /**
21+ * Compression filter
22+ *
23+ * **NOTE**: This option is a regular expression string, not a regular expression object.
24+ * Deserialization will cause a panic if use regex object. For example,
25+ *
26+ * @default '\\.(js|mjs|json|css|html)$'
27+ */
328 filter ?: string ;
29+ /**
30+ * Delete original file
31+ * @default false
32+ */
433 deleteOriginFile ?: boolean ;
534}
You can’t perform that action at this time.
0 commit comments