Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Asset pipeline for Jekyll that collects, converts and compresses JavaScript and CSS assets.
Jekyll Asset Pipeline is an open-source Ruby gem that automatically collects, converts, and compresses JavaScript and CSS assets whenever you build a Jekyll site.
Jekyll Asset Pipeline is a Ruby gem that plugs into Jekyll's build process to collect raw JavaScript and CSS files, run them through converters and compressors, and output bundled assets with MD5-hashed filenames. It reads asset manifests written as YAML lists inside the css_asset_tag and javascript_asset_tag Liquid tags, and replaces those tags with HTML link and script elements pointing to the generated bundles. The plugin was originally created by Matt Hodan and is distributed via RubyGems as jekyll_asset_pipeline; active development now continues at janosrusiczki's GitHub repository.
JekyllAssetPipeline::Converter.link and script tags that reference the generated bundles, with an option to override via custom templates..css.scss.erb runs ERB before SCSS._config.yml — Control bundling, compression, output path, display path, and gzip output.plugins folder.link or script tag.media="screen" to CSS links.css_asset_tag and javascript_asset_tag Liquid tags._site output folder.link or script tags that point to the generated bundle files.The plugin reads an asset_pipeline block from _config.yml. Supported settings are bundle (default true), compress (default true), output_path (default assets), display_path (default nil), and gzip (default false). Setting bundle or compress to false is useful during debugging because assets are stored individually and left unminified.
Yes. It is released under the MIT License and is available as an open-source Ruby gem.
Run gem install jekyll_asset_pipeline. If you use Bundler, add gem 'jekyll_asset_pipeline' to your Gemfile and run bundle install.
It supports any language with a Ruby wrapper. The README includes examples for CoffeeScript, Sass/SCSS, and Less, and says Erb works as well. You must define a converter class for each file extension you use.
Yes. Add the gem to your Octopress Gemfile, place jekyll_asset_pipeline.rb in the plugins folder, and store assets under source/_assets. Compile with Octopress's rake generate instead of jekyll build.
Check that Jekyll's safe option is not set to true in _config.yml, because that prevents Jekyll from running plugins.
