https://github.com/mudge/asset_compressor
A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.
https://github.com/mudge/asset_compressor
Last synced: 9 months ago
JSON representation
A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.
- Host: GitHub
- URL: https://github.com/mudge/asset_compressor
- Owner: mudge
- License: mit
- Created: 2008-04-07T10:06:57.000Z (about 18 years ago)
- Default Branch: master
- Last Pushed: 2008-06-25T10:15:44.000Z (about 18 years ago)
- Last Synced: 2025-05-08T18:53:37.837Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 905 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
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.