mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
js and css compression
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -48,6 +48,7 @@ group :assets do
|
||||
gem 'sass-rails', " ~> 3.2.0"
|
||||
gem 'coffee-rails', " ~> 3.2.0"
|
||||
gem 'uglifier'
|
||||
gem 'yui-compressor'
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
||||
@@ -38,6 +38,10 @@ GIT
|
||||
GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
POpen4 (0.1.4)
|
||||
Platform (>= 0.4.0)
|
||||
open4
|
||||
Platform (0.4.0)
|
||||
actionmailer (3.2.11)
|
||||
actionpack (= 3.2.11)
|
||||
mail (~> 2.4.4)
|
||||
@@ -135,6 +139,7 @@ GEM
|
||||
newrelic_rpm (3.5.6.46)
|
||||
nokogiri (1.5.6)
|
||||
oauth (0.4.7)
|
||||
open4 (1.3.0)
|
||||
paperclip (3.4.0)
|
||||
activemodel (>= 3.0.0)
|
||||
activerecord (>= 3.0.0)
|
||||
@@ -232,6 +237,8 @@ GEM
|
||||
rack (>= 1.0.0)
|
||||
will_paginate (3.0.4)
|
||||
yajl-ruby (1.1.0)
|
||||
yui-compressor (0.9.6)
|
||||
POpen4 (>= 0.1.4)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
@@ -274,3 +281,4 @@ DEPENDENCIES
|
||||
uglifier
|
||||
vegas
|
||||
will_paginate
|
||||
yui-compressor
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//= require ./nested_form
|
||||
//= require ./jquery-1.7.1.min
|
||||
//= require ./jquery.tablesorter.min
|
||||
//= require ./jquery.ba-hashchange.min
|
||||
@@ -15,6 +14,7 @@
|
||||
//= require ./jqplot.cursor.min
|
||||
//= require ./jqplot.barRenderer.min
|
||||
//= require ./bootstrap-collapse
|
||||
//= require ./nested_form
|
||||
//= require_self
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ Snpr::Application.configure do
|
||||
|
||||
# Compress JavaScript and CSS
|
||||
config.assets.compress = true
|
||||
config.assets.js_compressor = :uglifier
|
||||
config.assets.css_compressor = :yui
|
||||
|
||||
# Don't fallback to assets pipeline
|
||||
config.assets.compile = false
|
||||
|
||||
Reference in New Issue
Block a user