archive-webpack-plugin

archive-webpack-plugin

Usage no npm install needed!

<script type="module">
  import archiveWebpackPlugin from 'https://cdn.skypack.dev/archive-webpack-plugin';
</script>

README

archive-webpack-plugin

This webpack plugin allows you to compress files into tar, zip and other formats.

Usage

const ArchiveWebpackPlugin = require('archive-webpack-plugin');

config.plugins = [
  new ArchiveWebpackPlugin({
    source: 'dist/',
    destination: 'static.tar',
    format: 'tar' // tar, zip
  })
]

directory structure

dist
│   ├── index.html
│   ├── index.js
│   ├── index.js.map
│   └── index.min.css
├── static.tar