All Projects → daliborgogic → nuxt-brotli

daliborgogic / nuxt-brotli

Licence: other
Nuxt.js module which compresses assets with Brotli compression algorithm using `iltorb` library for serving it with `ngx_brotli`

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nuxt-brotli

Instant-Face-Unlock
Xposed Module's InstantFaceUnlock Code
Stars: ✭ 23 (+21.05%)
Mutual labels:  module
brotli.cr
Crystal bindings to the Google brotli compression library
Stars: ✭ 20 (+5.26%)
Mutual labels:  brotli
react-watermark-module
React水印组件,支持图片水印,文字水印。
Stars: ✭ 31 (+63.16%)
Mutual labels:  module
ScsmPx
System Center Service Manager PowerShell Extensions
Stars: ✭ 30 (+57.89%)
Mutual labels:  module
Stripe-Payment-For-Opencart-3.x
Stripe payment module for opencart 3.x
Stars: ✭ 29 (+52.63%)
Mutual labels:  module
ProtocolServiceKit
iOS组件通信中间件(Protocol Service),Adapter Swift/Objective-C
Stars: ✭ 139 (+631.58%)
Mutual labels:  module
ZanAppUpdater
App updater
Stars: ✭ 55 (+189.47%)
Mutual labels:  module
puppetlabs-dism
No description or website provided.
Stars: ✭ 19 (+0%)
Mutual labels:  module
restish
Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
Stars: ✭ 453 (+2284.21%)
Mutual labels:  brotli
hal stm32
No description or website provided.
Stars: ✭ 56 (+194.74%)
Mutual labels:  module
yii2-queue-monitor
Yii2 Queue Analytics Module
Stars: ✭ 99 (+421.05%)
Mutual labels:  module
nrf24
nrf24l01 linux device driver
Stars: ✭ 20 (+5.26%)
Mutual labels:  module
ReDe
A Redis dehydrator module
Stars: ✭ 63 (+231.58%)
Mutual labels:  module
modjpeg-nginx
NGINX filter module for adding overlays and logos to JPEGs on-the-fly without degrading the quality of the image.
Stars: ✭ 18 (-5.26%)
Mutual labels:  module
ark.db
Small and fast JSON database for Node and browser. 😋
Stars: ✭ 65 (+242.11%)
Mutual labels:  module
create-node-lib
Scaffold a batteries-included Node.js library project with docs, tests, semantic releases and more
Stars: ✭ 31 (+63.16%)
Mutual labels:  module
create-require
Polyfill for Node.js module.createRequire (<= v12.2.0)
Stars: ✭ 24 (+26.32%)
Mutual labels:  module
ui patterns
[NOTE] Development has moved to https://drupal.org/project/ui_patterns
Stars: ✭ 87 (+357.89%)
Mutual labels:  module
WebinoImageThumb
✂️ Webino™ Image thumbnailer for Zend Framework [LTS] http://webino.github.io/WebinoImageThumb
Stars: ✭ 40 (+110.53%)
Mutual labels:  module
Thread
type safe multi-threading made easier
Stars: ✭ 34 (+78.95%)
Mutual labels:  module

nuxt-brotli

This Nuxt.js module compresses assets with Brotli compression algorithm using iltorb library for serving it with ngx_brotli.

Installation

$ npm i nuxt-brotli

Usage

Add nuxt-brotli to modules section of nuxt.config.js

{
  modules: ['nuxt-brotli']
}

Arguments:

  • asset: The target asset name. Defaults to '[path].br[query]'.
    • [file] is replaced with the original asset file name.
    • [fileWithoutExt] is replaced with the file name minus its extension, e.g. the style of style.css.
    • [ext] is replaced with the file name extension, e.g. the css of style.css.
    • [path] is replaced with the path of the original asset.
    • [query] is replaced with the query.
  • test: All assets matching this RegExp are processed. Defaults to /\.(js|css|html|svg)$/.
  • threshold: Only assets bigger than this size (in bytes) are processed. Defaults to 0.
  • minRatio: Only assets that compress better that this ratio are processed. Defaults to 0.8.
  • deleteOriginalAssets: remove original files that were compressed with brotli. Default: false

Optional arguments for Brotli (see iltorb doc for details):

  • mode: Default: 0,
  • quality: Default: 11,
  • lgwin: Default: 22,
  • lgblock: Default: 0,
  • size_hint: Default: 0,
  • disable_literal_context_modeling: Default: false

License

Nuxt.js

iltorb

brotli plugin for webpack

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].