Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Use Uglifier Harmony mode #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/initializers/uglifier.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no string literals in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but our Rubocop ruleset makes the magic comment mandatory 🤷‍♂️

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, maybe we could reconsider whilelisting rules vs. blacklisting? ;-)


if Rails.application.config.assets.js_compressor == :uglifier
michaelbaudino marked this conversation as resolved.
Show resolved Hide resolved
Rails.application.config.assets.js_compressor = Uglifier.new(harmony: true)
end