{"version":"1.0","author_url":"https://blog.hatena.ne.jp/gregminster/","provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/459657/1514221821256751","height":"190","url":"https://obel.hatenablog.jp/entry/20180530/1527672119","published":"2018-05-30 18:21:59","blog_title":"\u7d04\u675f\u306e\u5730","title":"Rails \u3067 ES6 \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5931\u6557\u3059\u308b\u5834\u5408","author_name":"gregminster","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 -> \u8a00\u8a9e -> Ruby"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20180530%2F1527672119\" title=\"Rails \u3067 ES6 \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5931\u6557\u3059\u308b\u5834\u5408 - \u7d04\u675f\u306e\u5730\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","blog_url":"https://obel.hatenablog.jp/","width":"100%","description":"\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8 Uglifier::Error: Unexpected token: name (foobar_foobar). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). \u7d50\u8ad6 config/environments/production.rb \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3057\u3087\u3046*1\u3002 \u5909\u66f4\u524d\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u8a2d\u5b9a\uff09 config.assets.js_compressor = :uglifier \u5909\u66f4\u5f8c\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u8a2d\u5b9a\uff09 config.assets.js_compres\u2026"}