gzip-brunch
June 6, 2020 ยท View on GitHub
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)
- 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