Skip to content

Commit

Permalink
Added inline javascript and css compression in html files
Browse files Browse the repository at this point in the history
  • Loading branch information
pacbard authored and grosser committed Dec 29, 2012
1 parent 15e5134 commit d37eba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reduce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def reduce(file)
case extension
when 'html', 'xml'
compressor = File.join(File.dirname(__FILE__),'..','vendor','htmlcompressor*.jar')
`java -jar #{compressor} --type #{extension} #{file}`
`java -jar #{compressor} --type #{extension} --compress-js --compress-css #{file}`
when 'js','css'
compressor = File.join(File.dirname(__FILE__),'..','vendor','yuicompressor*.jar')
`java -jar #{compressor} --type #{extension} #{file}`
Expand Down

0 comments on commit d37eba6

Please sign in to comment.