Skip to content

lypanov/bundle-fu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundle fu
-—————

Each css / js you load causes your site to load slower! You can speed things up
exponentially by simply combining all your css/js files into one file each.

Bundle_fu makes it easy to do. It’s as easy as 1, 2!

USAGE / INSTALLATION
-——————————-

Step 1

Install this plugin

script/plugin install git://github.com/zinf/bundle-fu.git

Step 2

Put the following around your stylesheets/javascripts (note it works with any method of including assets!):


  <% bundle do %>
    ...
    <%= javascript_include_tag "prototype" %>
    <%= stylesheet_link_tag "basic.css" %>
    <%= calendar_date_select_includes params[:style] %>
    <script src="javascripts/application.js" type="text/javascript"></script>
    ...
  <% end %>

That’s it!

More info

About

Ruby on Rails plugin - CSS/JS asset bundling in 10 seconds or less!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 95.4%
  • JavaScript 4.6%