Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Jekyll-asset_compiler is a Jekyll Plugin for asset compilation and bundling.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md
asset_compiler.rb

README.md

Jekyll-asset_compiler

Jekyll-asset_compiler is a Jekyll Plugin for asset compilation, compresses and compiles js and css assets.

Usage

Put this plugin in _plugin folder Define your bundle files put it _bundles folder

  jekyll-site
  |
  | _plugin | asset_compiler.rb
  | _bundles | bundle_home.js
             | bundle_stylesheet.css
  | css | common.css
        | styles.css
  | js  | base.js

Make sure you have bundle initial. Next, Add required files by giving their path

Inside bundle_home.js

http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js
/js/base.js

Inside bundle_stylesheet.css

/css/common.css
/css/styles.css

To include required bundle in your file just add

  {% asset %}bundle_home.js, bundle_stylesheet.css{% endasset %}

Compiled files will be generated at bundles directory inside _site and link will be automatically added by.

Dependencies

Uses the yui-compressor, make sure you have yui-compressor gem successfully installed.

Something went wrong with that request. Please try again.