Skip to main content

gatsby-plugin-brotli

Build Status Dependencies Known Vulnerabilities Coverage Status Greenkeeper badge npm npm js-standard-style

Gatsby plugin for preparing brotli-compressed versions of assets.

/webpack-runtime-cde5506958f1afc4d89e.js

becomes

/webpack-runtime-cde5506958f1afc4d89e.js.br

Installation

With npm:

npm install --save gatsby-plugin-brotli

Or with Yarn:

yarn add gatsby-plugin-brotli

Usage

In your gatsby-config.js file add:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-brotli'
    }
  ]
}

Maintainers

Osmond van Hemert

Github NPM Twitter Web

Contributing

See the CONTRIBUTING.md file for details.

Donations

Want to help me out by giving a donation? Check out these options:

Patreon Coinbase PayPal Ko-fi

License

Licensed under MIT.

NOTE: This plugin only generates output when run in production mode! To test, run: gatsby build && gatsby serve