Skip to content

banyan/gzip-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gzip-brunch

Adds gzip support to brunch.

The plugin will gzipfy HTML files, JS files and CSS files.

Usage

Install the plugin via npm with:

$ npm install --save gzip-brunch

This plugin works only when optimized option is passed.

$ brunch build --production

Config

To specify gzip options, use config.plugins.gzip object.

Change JS path or CSS path

config =
  plugins:
    gzip:
      paths:
        javascript: 'javascripts'
        stylesheet: 'stylesheets'
      removeOriginalFiles: false
      renameGzipFilesToOriginalFiles: false
  • default
gzip.paths.javascript javascripts
gzip.paths.stylesheet stylesheets
gzip.removeOriginalFiles false
gzip.renameGzipFilesToOriginalFiles false

CHANGELOG

  • 2.0.0 (06 Jun 2020)
  • 1.3.0 (03 May 2014)
    • Enhancement for renaming option #6.
  • 1.2.0 (20 Feb 2014)
    • Changed #3 behaviour as optionize. See #5
  • 1.1.0 (06 Feb 2014)
    • Original files are deleted when compressing is done: #3
  • 1.0.4 (28 Jan 2014)
    • Bumped for #2
  • 1.0.1 (10 Jan 2014)
    • Update docs
  • 1.0.0 (29 Sep 2013)
    • Initial release

License

The MIT License (MIT)

Copyright (c) 2013 Kohei Hasegawa

About

Adds gzip support to brunch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •