项目作者: Le0Michine

项目描述 :
Puts emitted assets into a zip file
高级语言: JavaScript
项目地址: git://github.com/Le0Michine/webpack-zip-bundler.git
创建时间: 2017-02-08T23:45:54Z
项目社区:https://github.com/Le0Michine/webpack-zip-bundler

开源协议:

下载


webpack-zip-bundler

A plugin for packaging assets into a zip archive. It is based on JSZip library https://stuk.github.io/jszip.

Installation

  1. npm install --save-dev webpack-zip-bundler

Usage

  1. const ZipBundlerPlugin = require('webpack-zip-bundler');
  2. ...
  3. // add to webpack plugins array
  4. plugins: [
  5. new ZipBundlerPlugin(options)
  6. ]
  7. /*
  8. options: {
  9. out: string, output file name, 'out.zip' by default
  10. regex: Regex, regex to filter assets by their names
  11. }
  12. */