0.01
No commit activity in last 3 years
No release in over 3 years
Use Jammit in Middleman - merge multiple javascripts/stylesheets into one
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.6
>= 3.0.0
 Project Readme

middleman-jammit¶ ↑

Use Jammit in Middleman - merge multiple javascripts/stylesheets into one

Usage¶ ↑

  1. Install

    gem install middleman-jammit -v 0.0.2 # for middleman 1.2.7
    gem install middleman-jammit -v 0.2.0 # for middleman 2.x

    For middleman 3.x you can add it to your Gemfile:

    gem 'middleman-jammit'
    
  2. Create your project

    middleman init your-middleman-project
    
  3. Create config/assets.yml and activate feature in config.rb

    cd your-middleman-project; mm-jammit-install
    

    Run with --help for options.

  4. Add this to your views/layout.haml:

    = include_stylesheets :all
    = include_javascripts :all
  5. Run server/builder

    middleman server
    

    individual files are used (/javascripts/site.js, /stylesheets/site.css …)

    middleman build
    

    packages are used (/assets/all.js and /assets/all.css)

  6. Enjoy!