Top Contributors
-
matthewowen - 2
-
cnunciato - 2
-
LawrenceWoodman - 2
-
tsmango - 2
-
stereobooster - 2
Most Forked
- jekyll_alias_generator - 32
- jekyll-tagging - 30
- jekyll-scholar - 18
- jekyll-tweet-tag - 18
- jekyll-asset_bundler - 18
Most Watched
- jekyll-author-plugin - 10
- Simple-Jekyll-Search - 9
- jekyll-press - 9
- jekyll-scholar - 9
- jekyll_alias_generator - 8
Most Starred
- Simple-Jekyll-Search - 244
- jekyll-scholar - 176
- jekyll-tagging - 104
- jekyll_alias_generator - 102
- jekyll_indextank - 90
Plugin Information
jekyll-press
Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required
README.md
jekyll-press
Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required.
This plugin:
- compress html with the help of html_press
- compress JavaScript files with the help of uglifier
- compress css files with the help of css_press
Installation
Bundler
Add this line to your application's Gemfile
:
gem 'jekyll-press'
And then execute:
$ bundle
Standalone
Execute:
$ gem install jekyll-press
Usage
With Bundler (recomended)
Create the following plugin in your projects _plugins directory.
# _plugins/bundler.rb
require "rubygems"
require "bundler/setup"
Bundler.require(:default)
This will automatically require all of the gems specified in your Gemfile.
Standalone
Create the following plugin in your projects _plugins directory.
# _plugins/jekyll-press-plugin.rb
require 'jekyll-press'
Settings
jekyll-press:
exclude: 'atom.xml' # Exclude files from processing - file name, glob pattern or array of file names and glob patterns
js_options: {} # js minifier options
css_options: {} # css minifier options
html_options: {} # html minifier options
TODO
- add test: run against simple jekyll site and check if there is no errors
- Minify JPEGs with
jpegtran
orsmush.it
(smusher) - Minify PNGs with
optipng
orsmush.it
(smusher) - Auto CSS sprites (for example sprite factory)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request