build-gzip

Compress static assets after compilation

Usage no npm install needed!

<script type="module">
  import buildGzip from 'https://cdn.skypack.dev/build-gzip';
</script>

README

build-gzip

Build Status

Compress static assets after compilation

Installing

build-gzip is available as an npm package.

Usage

Add build-bin and build-gzip to the package.json.

{
  "name": "project",
  "private": true,
  "scripts": {
    "build": "build"
  },
  "devDependencies": {
    "build-bin": "^0.0.6",
    "build-gzip": "^0.0.1"
  }
}

From the command line, run:

npm run build

build-gzip will compress all files in the dist directory into new files suffixed with .gz. build-bin will ensure that compilation plugins run first before this compression plugin.

Development

Getting Started

The application requires the following external dependencies:

  • Node.js

The rest of the dependencies are handled through:

npm install

Run tests with:

npm test