@feizheng/archiver-webpack-plugin

1.0.0 • Public • Published

archiver-webpack-plugin

Archiver webpack plugin.

installation

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

usage

import ArchiverWebpackPlugin from '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 function (inValue) { return inValue} replace to transform package path.
output Function function (inPath, inExt) { return inPath + inExt } replace to output package path.
ext String .tar.gz Package extention

resources

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/archiver-webpack-plugin

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.27 kB

Total Files

8

Last publish

Collaborators

  • afeiship