Skip to content

matt-hh/middleman-jammit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Use Jammit in Middleman

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages