Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@siteone/builder-plugin-brotli

Package Overview
Dependencies
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@siteone/builder-plugin-brotli

> plugin for preparing compressed assets with [`brotli`](https://github.com/google/brotli)

  • 0.2.1
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
3
Weekly downloads
 
Created
Source

@siteone/builder-plugin-brotli

plugin for preparing compressed assets with brotli

Install

$ npm install --save-dev @siteone/builder-plugin-brotli

Usage

None – recognized by and attached to @siteone/builder-core automatically!

Config

Configurable via the brotli key on your bldr.config.js file.

Default Config:

exports.brotli = {
  cache: true,
  threshold: 0,
  minRatio: 0.8,
  compressionOptions: {
    quality: 11,
    size_hint: 0,
    lgblock: 0,
    lgwin: 22,
    mode: 0
  }
}

Available Options:

See Options for compression-webpack-plugin.

Also see iltorb's Encoding Params for the compressionOptions object.

:bulb: Explanations for the brotli parameters are available here.

FAQs

Package last updated on 06 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc