Sha256: e7f79c293c55ddbc6e7f336c2a2120e1ffbd197110cde503698f0548fb4db905
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
# 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`: ```ruby gem 'jekyll-press' ``` And then execute: ```bash $ bundle ``` ### Standalone Execute: ```bash $ gem install jekyll-press ``` ## Usage ### With Bundler (recomended) Create the following plugin in your projects _plugins directory. ```ruby # _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. ```ruby # _plugins/jekyll-press-plugin.rb require 'jekyll-press' ``` ### Settings If you want to exclude some jekyll pages from processing (for example `atom.xml`) you can add following to the `_config.yml`: ```yaml jekyll-press: exclude: 'atom.xml' ``` `exclude` can be file name, glob pattern or array of file names and glob patterns. ## TODO - Minify JPEGs with [`jpegtran`](/cmer/jpegtran) or `smush.it` ([smusher](/grosser/smusher)) - Minify PNGs with [`optipng`](/martinkozak/optipng) or `smush.it` ([smusher](/grosser/smusher)) - Auto CSS sprites (for example [sprite factory](/jakesgordon/sprite-factory/)) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-press-0.2.0 | Readme.md |
jekyll-press-0.1.0 | Readme.md |