Huge News!Announcing our $40M Series B led by Abstract Ventures.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

provide a vite plugin then zip your file after compile done

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87
decreased by-37.41%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-auto-zip

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

Just in case, make sure AutoZip is the last item in the plugins

import AutoZip from 'vite-plugin-auto-zip'
{
    plugins:[
        AutoZip()
    ]
}

params of AutoZip

  1. outName see breaking changes when 1.2.0

    • your zip file name
    • default value is 'dist.zip'
  2. folderPath

    • the target folder you want to zip
    • default value is './dist'
  3. outPath

    • the output folder you want to put the zip file
    • default value is './dist'
function AutoZip(outName: string = 'dist.zip', folderPath: string = './dist', outPath: string = './dist') {
}

breaking changes

v1.2.0

  • outName will be first params

Keywords

FAQs

Package last updated on 27 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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