1.2.0 • Published 4 months ago

vite-plugin-auto-zip v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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
1.2.0

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago