ignorar uglifier en produccion
This commit is contained in:
parent
39e0092c22
commit
04341813d7
1 changed files with 7 additions and 1 deletions
|
@ -29,7 +29,13 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Compress CSS using a preprocessor.
|
# Compress CSS using a preprocessor.
|
||||||
config.assets.css_compressor = :sass
|
config.assets.css_compressor = :sass
|
||||||
config.assets.js_compressor = Uglifier.new(harmony: true)
|
|
||||||
|
# rubocop:disable Lint/HandleExceptions
|
||||||
|
begin
|
||||||
|
config.assets.js_compressor = Uglifier.new(harmony: true)
|
||||||
|
rescue NameError
|
||||||
|
end
|
||||||
|
# rubocop:enable Lint/HandleExceptions
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
Loading…
Reference in a new issue