Dir2Zip.js 257 B

123456789
  1. const compressing = require('compressing')
  2. compressing.zip.compressDir('./dist', './dist.zip')
  3. // compressing.tar.compressDir('./dist', './dist.tar').then(() => {
  4. // console.log('压缩成功')
  5. // }).catch(() => {
  6. // console.log('压缩失败')
  7. // })