Skip to main content
.com
Skip to main content
Algolia
View plugin on GitHub
See starters using this

gatsby-plugin-brotli

Travis AppVeyor Codacy Badge Known Vulnerabilities Greenkeeper badge 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 Web

Contributing

See the CONTRIBUTING file for details.

License

Licensed under MIT.

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


Docs
Tutorial
Plugins
Blog
Showcase