{"author_url":"https://blog.hatena.ne.jp/i178inaba/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_name":"i178inaba","blog_url":"https://inaba.hatenablog.com/","version":"1.0","height":"190","blog_title":"Technology Engineering","url":"https://inaba.hatenablog.com/entry/2018/10/15/102959","description":"\u4f8b\u3048\u3070 static/js \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bjs\u304c\u7f6e\u3044\u3066\u3042\u308b\u3068\u3059\u308b\u3002 $ tree . \u2514\u2500\u2500 static \u2514\u2500\u2500 js \u251c\u2500\u2500 bar.js \u251c\u2500\u2500 baz.js \u2514\u2500\u2500 foo.js \u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3042\u308bjavascript\u3092\u5168\u3066Minify\u3057\u305f\u3044\u5834\u5408\u306ebash\u30b9\u30af\u30ea\u30d7\u30c8\u3002 for f in $(ls static/js/*.js); do uglifyjs -cm -o \"${f/.js/.min.js}\" \"${f}\" done Minify\u306b\u306f uglify-js \u3092\u4f7f\u7528\u3059\u308b\u3002 \u30aa\u30d7\u30b7\u30e7\u30f3\u306e c \u304c\u5358\u7d14\u306a\u30bd\u30fc\u30b9\u5727\u7e2e\u3001 m \u304c\u5909\u6570\u540d\u306e\u5727\u7e2e(1\u6587\u5b57\u306b\u3059\u308b)\u3001 o \u306f\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3059\u308b\u30d5\u2026","title":"\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3042\u308bjavascript\u3092\u5168\u3066Minify\u3059\u308b","published":"2018-10-15 10:29:59","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaba.hatenablog.com%2Fentry%2F2018%2F10%2F15%2F102959\" title=\"\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3042\u308bjavascript\u3092\u5168\u3066Minify\u3059\u308b - Technology Engineering\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"width":"100%"}