Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 7b04a81

Browse files
committed
Adds uglify2 to build config whitelist.
1 parent 20a7d7e commit 7b04a81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/requirejs/rails/config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def initialize
8383
skipModuleInsertion
8484
skipPragmas
8585
uglify
86+
uglify2
8687
useStrict
8788
wrap
8889
}
@@ -101,7 +102,7 @@ def build_config
101102
"modules" => [ { 'name' => 'application' } ]
102103
self[:build_config].merge!(self.user_config).slice!(*self.build_config_whitelist)
103104
case self.loader
104-
when :requirejs
105+
when :requirejs
105106
# nothing to do
106107
when :almond
107108
mods = self[:build_config]['modules']

0 commit comments

Comments
 (0)