Skip to content

A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.

License

Notifications You must be signed in to change notification settings

jtoy/asset_compressor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AssetCompressor

Based on both AssetPackager and Rails 2.0's built-in asset caching capabilities, this plugin will concatenate and compress any specified Javascript and Cascading Style Sheets using Yahoo!'s excellent YUI Compressor.

To use, instead of using Rails' own javascript_include_tag and stylesheet_link_tag, use javascript_include_compressed and stylesheet_link_compressed like so:

<%= javascript_include_compressed 'compressed_javascript.js', 'javascript.js', 'javascript2.js' %>

Copyright (c) 2007 Paul Mucur, released under the MIT license

YUI Compressor is Copyright (c) 2006 Yahoo! Inc. All rights reserved. See YUI-COMPRESSOR-LICENSE.txt for more information.

About

A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published