Skip to content

Commit

Permalink
Merge pull request #326 from bouk/fix-uglifier-comments-default-3.x
Browse files Browse the repository at this point in the history
Fix uglifier comment stripping default
  • Loading branch information
rafaelfranca committed Jun 24, 2016
2 parents 2702b33 + 2a1d937 commit dd4191a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sprockets/uglifier_compressor.rb
Expand Up @@ -41,7 +41,7 @@ def initialize(options = {})
options[:copyright] ||= false
else
# Uglifier >= 2.x
options[:copyright] ||= :none
options[:comments] ||= :none
end

@uglifier = Autoload::Uglifier.new(options)
Expand Down
2 changes: 1 addition & 1 deletion test/test_uglifier_compressor.rb
Expand Up @@ -6,7 +6,7 @@ class TestUglifierCompressor < MiniTest::Test
def test_compress_javascript
input = {
content_type: 'application/javascript',
data: "function foo() {\n return true;\n}",
data: "/* Copyright Rails */\nfunction foo() {\n return true;\n}",
cache: Sprockets::Cache.new
}
output = "function foo(){return!0}"
Expand Down

0 comments on commit dd4191a

Please sign in to comment.