To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). in /_layouts/base.html我在网上发现解决方案应该是使用: Uglifier.compile(js, harmony: true) 在一个production.rb文件中,因为我使用的是Jekyll,所以我没有这个文件,我只能在config.yml中进行设置 ... js_compressor: uglifier</em
remote: Uglifier::Error: Name expected/tmp/build_171697f13e39a5810263766b205b8f86/vendor/bundle/ruby/2.3.0/gems/uglifier-4.1.4/lib/uglifier.rb:234:in `parse_result'
runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifierexecjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/<