mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
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.
|
||||
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.
|
||||
config.assets.compile = false
|
||||
|
|
Loading…
Reference in a new issue