terser 1.1.14 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +42 -0
- data/CHANGELOG.md +40 -0
- data/Gemfile +3 -3
- data/README.md +13 -3
- data/Rakefile +7 -6
- data/lib/source-map.js +3233 -2
- data/lib/terser/compressor.rb +1 -1
- data/lib/terser/version.rb +1 -1
- data/lib/terser.js +32542 -1
- data/lib/terser.rb +2 -0
- data/lib/terser_wrapper.js +3 -1
- data/terser.gemspec +2 -0
- metadata +5 -4
data/lib/terser/compressor.rb
CHANGED
@@ -10,7 +10,7 @@ class Terser
|
|
10
10
|
|
11
11
|
def initialize(options = {})
|
12
12
|
options[:comments] ||= :none
|
13
|
-
@options = options
|
13
|
+
@options = options.merge(Rails.application.config.assets.terser.to_h)
|
14
14
|
@cache_key = -"Terser:#{::Terser::VERSION}:#{VERSION}:#{::Sprockets::DigestUtils.digest(options)}"
|
15
15
|
@terser = ::Terser.new(@options)
|
16
16
|
end
|
data/lib/terser/version.rb
CHANGED