New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-auto-zip

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-auto-zip - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

dist/vite-plugin-auto-zip.js

31

package.json
{
"name": "vite-plugin-auto-zip",
"version": "1.0.4",
"version": "1.1.0",
"description": "provide a vite plugin then zip your file after compile done",
"main": "plugin.js",
"main": "dist/vite-plugin-auto-zip.umd.js",
"module": "dist/vite-plugin-auto-zip.mjs",
"types": "./types",
"type": "module",
"files": [
"dist",
"types"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rimraf -rf ./dist && rollup --config && yarn run build:types",
"build:types": "rimraf -rf ./types && mkdir ./types && tsc -p ./tsconfig.json",
"test": "node test.js"
},

@@ -15,3 +24,4 @@ "repository": {

"vite",
"plugin"
"plugin",
"zip files"
],

@@ -24,5 +34,14 @@ "author": "webszy",

"homepage": "https://github.com/webszy/vite-plugin-auto-zip#readme",
"dependencies": {
"jszip": "^3.5.0"
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^20.10.6",
"jszip": "^3.5.0",
"rollup": "^4.9.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"rimraf": "^5.0.5"
}
}
# vite-plugin-auto-zip
my first vite plugin:vite-plugin-auto-zip,you will auto zip when vite build done
> basic use on vite.config.js
my first vite plugin named auto-zip,mean it will auto zip your dist files after vite build done ,only emit when
production
### basic use on vite.config.js
```javascript
import AutoZip from 'vite-plugin-auto-zip'
// const AutoZip = require('vite-plugin-auto-zip') also supported
{
plugins:[AutoZip()]
plugins:[
AutoZip()
]
}
```
### params of AutoZip
1. folderPath
+ the target folder you want to zip
+ default value is './dist'
2. outPath
+ the output folder you want to put the zip file
+ default value is './dist'
3. outName
+ your zip file name
+ default value is 'dist.zip'
```typescript
function AutoZip(folderPath: string = './dist', outPath: string = './dist', outName: string = 'dist.zip')
```
index.js
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