@jswork/archiver-webpack-plugin

1.0.0 • Public • Published

archiver-webpack-plugin

Archiver webpack plugin.

installation

npm install -D @jswork/archiver-webpack-plugin

usage

import ArchiverWebpackPlugin from '@jswork/archiver-webpack-plugin';

// plugins:
plugiins:[
  new ArchiverWebapckPlugin({
    transform: function (inValue) {
      return 'app/' + inValue;
    },
    output: function (inPath, inExt) {
      return inPath.replace('dist', 'dist/app') + inExt;
    }
  })
]

options

Name Type Default Description
format String tar archiver format options
formatOptions Object { gzip: true, zlib: { level: 9 } } archiver options
transform Function - replace to transform package path.
output Function - replace to output package path.
ext String .tar.gz Package extention

resources

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i @jswork/archiver-webpack-plugin

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • afeiship