Skip to content

Commit

Permalink
Uglifier is a concern of the ui-classic repo, I think
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed May 23, 2017
1 parent 7662fd9 commit afd4109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/manageiq/ui/classic/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
require 'font_awesome/sass/rails/engine'

require 'patternfly-sass/engine'
require 'uglifier'
end

require 'lodash-rails'
Expand All @@ -28,6 +29,13 @@ module Classic
class Engine < ::Rails::Engine
config.autoload_paths << File.expand_path(File.join(root, 'app', 'controllers', 'mixins'), __FILE__)
config.autoload_paths << File.expand_path(File.join(root, 'lib'), __FILE__)
config.assets.js_compressor = Uglifier.new(
:compress => {
:unused => false,
:keep_fargs => true,
:keep_fnames => true
}
) if Rails.env.production?

def vmdb_plugin?
true
Expand Down
1 change: 1 addition & 0 deletions manageiq-ui-classic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Gem::Specification.new do |s|
s.add_dependency "sass-rails"
s.add_dependency "high_voltage", "~> 3.0.0"
s.add_dependency "novnc-rails", "~>0.2"
s.add_dependency "uglifier", "~>3.0.0"

s.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
s.add_development_dependency "guard-rspec", '~> 4.7.3'
Expand Down

0 comments on commit afd4109

Please sign in to comment.