mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Merge pull request #864 from internetee/add-uglifier-gem
Add "uglifier" gem for es6 compression
This commit is contained in:
commit
fcefd14602
3 changed files with 5 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -13,6 +13,7 @@ gem 'SyslogLogger', '2.0', require: 'syslog/logger'
|
||||||
gem 'iso8601', '0.8.6' # for dates and times
|
gem 'iso8601', '0.8.6' # for dates and times
|
||||||
gem 'rails', '4.2.10' # when update, all initializers eis_custom files needs check/update
|
gem 'rails', '4.2.10' # when update, all initializers eis_custom files needs check/update
|
||||||
gem 'rest-client'
|
gem 'rest-client'
|
||||||
|
gem 'uglifier'
|
||||||
|
|
||||||
# load env
|
# load env
|
||||||
gem 'figaro', '1.1.1'
|
gem 'figaro', '1.1.1'
|
||||||
|
|
|
@ -424,6 +424,8 @@ GEM
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
tzinfo (1.2.5)
|
tzinfo (1.2.5)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
|
uglifier (4.1.11)
|
||||||
|
execjs (>= 0.3.0, < 3)
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.2)
|
unf_ext (0.0.7.2)
|
||||||
|
@ -519,6 +521,7 @@ DEPENDENCIES
|
||||||
simpleidn (= 0.0.7)
|
simpleidn (= 0.0.7)
|
||||||
spring
|
spring
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
|
uglifier
|
||||||
uuidtools (= 2.1.5)
|
uuidtools (= 2.1.5)
|
||||||
validates_email_format_of (= 1.6.3)
|
validates_email_format_of (= 1.6.3)
|
||||||
webmock
|
webmock
|
||||||
|
|
|
@ -23,7 +23,7 @@ Rails.application.configure do
|
||||||
config.serve_static_files = false
|
config.serve_static_files = false
|
||||||
|
|
||||||
# Compress JavaScripts and CSS.
|
# Compress JavaScripts and CSS.
|
||||||
# config.assets.js_compressor = :uglifier
|
config.assets.js_compressor = Uglifier.new(harmony: true)
|
||||||
# config.assets.css_compressor = :sass
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue