Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-with-yuicompressor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-with-yuicompressor

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= cache-with-yuicompressor

This gem sets up javascript and CSS bundle file compression using the YUI Compressor.

For example, using javascript_include_tag "prototype", "cart", "checkout", :cache => "shop"

creates a combined javascript file named shop.js. With this gem, YUI compressor will also be run on shop.js, resulting in a smaller, obfuscated file.

Don't forget to use GZip to further compress your asset files.

== Installation

cache-with-yuicompressor is provided as a gem. Simply include it in your environment.rb or Gemfile.

config.gem "cache-with-yuicompressor"

Alternatively it can be installed as a plugin.

script/plugin install git://github.com/amolk/cache-with-yuicompressor.git

=== Install JAVA The YUI compressor requires JAVA runtime to be installed. Install JRE as per your platform.

For Ubuntu, you can follow instructions at http://blog.amolkelkar.info/technotes/2010/06/solved-how-to-install-java-jre-on-ubuntu/.

== And that's it!

All generated javascript and css files will be automatically compressed using YUI Compressor. Also all console.* calls (such as console.log, console.trace) will be removed from javascript.

FAQs

Package last updated on 27 Aug 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc