Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-compression

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-compression - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc