vite-plugin-compression
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -58,3 +58,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __assign = Object.assign; | ||
ext = ".gz", | ||
threshold = 2050, | ||
threshold = 1025, | ||
compressionOptions = {}, | ||
@@ -61,0 +61,0 @@ deleteOriginFile = false |
{ | ||
"name": "vite-plugin-compression", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Use gzip or brotli to compress resources.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -46,3 +46,3 @@ # vite-plugin-imagemin | ||
| verbose | `boolean` | `true` | Whether to output the compressed result in the console | | ||
| filter | `RegExp or (file: string) => boolean` | - | Specify which resources are not compressed | | ||
| filter | `RegExp or (file: string) => boolean` | `DefaultFilter` | Specify which resources are not compressed | | ||
| disable | `boolean` | `false` | Whether to disable | | ||
@@ -55,2 +55,6 @@ | threshold | `number` | - | It will be compressed if the volume is larger than threshold, the unit is kb | | ||
**DefaultFilter** | ||
`/\.(js|mjs|json|css|html)$/i` | ||
## Example | ||
@@ -57,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19189
90
0