Joined February 2017
·

philipsampaio

Software engineer at Magnetis
·
Sao Paulo, Brazil
·
·
·

EDIT: the desired method is compress instead of compile as the Rails guides suggests: http://guides.rubyonrails.org/asset_pipeline.html#using-your-own-compressor

I think would be better to override the "compile" method instead of the private "really_compile", because the private one changed, and may keep changing since the interface is private.

TLDR: replace def really_compile(source, generated_map) by def compile(source).

Ref: https://github.com/lautis/uglifier/commit/aba46d4fb36db6c507306b54b48c39fb09fbc6da

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills