@packmule/compression-pack
Packmule pack to generate compressed assets.
Last updated 8 months ago by thasmo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @packmule/compression-pack 
SYNC missed versions from official npm registry.

Compression Pack

Generate gzip and brotli versions of configured assets.

Compression Pack uses compression-webpack-plugin and libraries like iltorb to create compressed gzip and brotli files.

Setup

npm install --save-dev @packmule/compression-pack

API

CompressionPack({
    extensions: ['html', 'json', 'xml', 'js', 'css', 'svg', 'ttf', 'otf'],
    gzip: true,
    brotli: true,
});

Options

  • optimize - Controls whether the pack is actually enabled or not.
  • cache - Controls cache utilization for the compression libraries.

Usage

Example

Generate compressed files.

import Packmule from '@packmule/core';
import CompressionPack from '@packmule/compression-pack';

const packmule = new Packmule();

if (env.production) {
    packmule.register(new CompressionPack());
}

return packmule.generate();

License

MIT


Current Tags

  • 2.0.1-nightly.242                                ...           latest (10 months ago)
  • 2.0.1-next.402                                ...           next (21 hours ago)
  • 2.0.1-nightly.402                                ...           nightly (5 hours ago)

53 Versions

  • 2.0.1-nightly.402                                ...           5 hours ago
  • 2.0.1-next.402                                ...           21 hours ago
  • 2.0.1-nightly.400                                ...           a day ago
  • 2.0.1-nightly.395                                ...           2 days ago
  • 2.0.1-nightly.392                                ...           19 days ago
  • 2.0.1-nightly.391                                ...           a month ago
  • 2.0.1-nightly.389                                ...           a month ago
  • 2.0.1-nightly.388                                ...           a month ago
  • 2.0.1-nightly.387                                ...           a month ago
  • 2.0.1-nightly.386                                ...           2 months ago
  • 2.0.1-nightly.375                                ...           2 months ago
  • 2.0.1-nightly.373                                ...           2 months ago
  • 2.0.1-nightly.372                                ...           2 months ago
  • 2.0.1-nightly.371                                ...           3 months ago
  • 2.0.1-nightly.370                                ...           3 months ago
  • 2.0.1-nightly.369                                ...           3 months ago
  • 2.0.1-nightly.368                                ...           3 months ago
  • 2.0.1-nightly.364                                ...           3 months ago
  • 2.0.1-nightly.363                                ...           3 months ago
  • 2.0.1-nightly.362                                ...           3 months ago
  • 2.0.1-nightly.360                                ...           3 months ago
  • 2.0.1-nightly.358                                ...           4 months ago
  • 2.0.1-nightly.357                                ...           4 months ago
  • 2.0.1-nightly.355                                ...           5 months ago
  • 2.0.1-nightly.353                                ...           5 months ago
  • 2.0.1-nightly.352                                ...           5 months ago
  • 2.0.1-nightly.346                                ...           6 months ago
  • 2.0.1-nightly.342                                ...           6 months ago
  • 2.0.1-nightly.341                                ...           6 months ago
  • 2.0.1-nightly.339                                ...           7 months ago
  • 2.0.1-nightly.328                                ...           7 months ago
  • 2.0.1-nightly.327                                ...           7 months ago
  • 2.0.1-nightly.325                                ...           7 months ago
  • 2.0.1-nightly.316                                ...           8 months ago
  • 2.0.1-nightly.314                                ...           8 months ago
  • 2.0.1-nightly.310                                ...           8 months ago
  • 2.0.1-nightly.301                                ...           8 months ago
  • 2.0.1-nightly.300                                ...           8 months ago
  • 2.0.1-nightly.295                                ...           8 months ago
  • 2.0.1-nightly.293                                ...           8 months ago
  • 2.0.1-nightly.287                                ...           8 months ago
  • 2.0.1-nightly.286                                ...           9 months ago
  • 2.0.1-nightly.283                                ...           9 months ago
  • 2.0.1-nightly.281                                ...           9 months ago
  • 2.0.1-nightly.280                                ...           9 months ago
  • 2.0.1-nightly.271                                ...           9 months ago
  • 2.0.1-nightly.263                                ...           9 months ago
  • 2.0.1-nightly.257                                ...           9 months ago
  • 2.0.1-nightly.255                                ...           9 months ago
  • 2.0.1-nightly.253                                ...           9 months ago
  • 2.0.1-nightly.251                                ...           9 months ago
  • 2.0.1-nightly.247                                ...           9 months ago
  • 2.0.1-nightly.242                                ...           10 months ago
Maintainers (2)
Downloads
Today 8
This Week 8
This Month 33
Last Day 16
Last Week 25
Last Month 15
Dependencies (4)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |