lib/uglifier.rb in uglifier-2.4.0 vs lib/uglifier.rb in uglifier-2.5.0
- old
+ new
@@ -8,11 +8,11 @@
Error = ExecJS::Error
# Default options for compilation
DEFAULTS = {
:output => {
- :ascii_only => false, # Escape non-ASCII characterss
+ :ascii_only => true, # Escape non-ASCII characterss
:comments => :copyright, # Preserve comments (:all, :jsdoc, :copyright, :none)
:inline_script => false, # Escape occurrences of </script in strings
:quote_keys => false, # Quote keys in object literals
:max_line_len => 32 * 1024, # Maximum line length in minified code
:bracketize => false, # Bracketize if, for, do, while or with statements, even if their body is a single statement
@@ -49,10 +49,12 @@
:join_vars => true, # Join consecutive var statements
:cascade => true, # Cascade sequences
:negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens
:pure_getters => false, # Assume that object property access does not have any side-effects
:pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used
- :drop_console => false # Drop calls to console.* functions
+ :drop_console => false, # Drop calls to console.* functions
+ :angular => false, # Process @ngInject annotations
+ :keep_fargs => false # Preserve unused function arguments
}, # Apply transformations to code, set to false to skip
:define => {}, # Define values for symbol replacement
:enclose => false, # Enclose in output function wrapper, define replacements as key-value pairs
:source_filename => nil, # The filename of the input file
:source_root => nil, # The URL of the directory which contains :source_filename