{"id":1300,"date":"2019-05-23T23:10:21","date_gmt":"2019-05-23T14:10:21","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1300"},"modified":"2022-07-09T23:34:11","modified_gmt":"2022-07-09T14:34:11","slug":"homebrew-%e7%b5%8c%e7%94%b1%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%9f-yui-compressor-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6-javascript-%e3%83%95%e3%82%a1%e3%82%a4","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/mac\/1300","title":{"rendered":"Homebrew \u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f YUI Compressor \u3092\u4f7f\u3063\u3066 JavaScript \u30d5\u30a1\u30a4\u30eb\u3092 Terminal \u4e0a\u3067\u5727\u7e2e\u3059\u308b"},"content":{"rendered":"<p>Sublime Text \u4e0a\u3067\u30b3\u30fc\u30c9\u306e\u5727\u7e2e\u51e6\u7406\u3092\u3059\u308b\u306e\u306b\u3001Package Control \u304b\u3089\u300cYUI Compressor\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30d2\u30c3\u30c8\u3057\u306a\u304b\u3063\u305f\u306e\u3067\u3001Terminal \u4e0a\u3067\u30b5\u30af\u30c3\u3068\u4f7f\u3048\u306a\u3044\u304b\u306a\u3068\u601d\u3063\u3066\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<h3>YUI Compressor \u3068\u306f<\/h3>\n<blockquote>\n<p>YUI Compressor<br \/>\n<a href=\"http:\/\/yui.github.io\/yuicompressor\/\">http:\/\/yui.github.io\/yuicompressor\/<\/a><\/p>\n<\/blockquote>\n<ul>\n<li>JavaScript \/ CSS \u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u51e6\u7406\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb<\/li>\n<li>Java\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u52d5\u4f5c\u306b\u306f Java Platform (JDK) \u304c\u5fc5\u8981<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>\u5c0e\u5165\u624b\u9806<\/h3>\n<h4>JDK\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<ul>\n<li><a href=\"https:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">Java SE &#8211; Downloads | Oracle Technology Network | Oracle<\/a><\/li>\n<li>\u4e0a\u8a18\u30c0\u30a6\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5de6\u306e\u300cJava Platform\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2019\/05\/jdkdl-1.png\" alt=\"\" width=\"1085\" height=\"710\"  \/><\/p>\n<ul>\n<li>\u6700\u65b0\u7248\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306b\u9077\u79fb\u3059\u308b\u306e\u3067\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u540c\u610f\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u305f\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2019\/05\/jdkdl-2.png\" alt=\"\" width=\"599\" height=\"844\"  \/><\/p>\n<ul>\n<li>\u843d\u3068\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2019\/05\/jdkdl-3.png\" alt=\"\" width=\"513\" height=\"379\"  \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2019\/05\/jdkdl-4.png\" alt=\"\" width=\"732\" height=\"550\"  \/><\/p>\n<ul>\n<li>300MB\u5f37\u306e\u9818\u57df\u304c\u5fc5\u8981\u306a\u306e\u3067\u6ce8\u610f<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2019\/05\/jdkdl-5.png\" alt=\"\" width=\"732\" height=\"550\"  \/><\/p>\n<ul>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001Terminal \u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/li>\n<\/ul>\n<pre><code class=\"language-sh\">$ java --version<\/code><\/pre>\n<ul>\n<li>\u4ee5\u4e0b\u304c\u51fa\u529b\u3055\u308c\u305f\u306e\u3067OK<\/li>\n<\/ul>\n<pre><code>java 12.0.1 2019-04-16\nJava(TM) SE Runtime Environment (build 12.0.1+12)\nJava HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)<\/code><\/pre>\n<h4>Homebrew \u304b\u3089 yuicompressor \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<ul>\n<li><a href=\"https:\/\/formulae.brew.sh\/formula\/yuicompressor\">yuicompressor \u2014 Homebrew Formulae<\/a><\/li>\n<li>Terminal \u304b\u3089\u4ee5\u4e0b\u3092\u5b9f\u884c<\/li>\n<\/ul>\n<pre><code class=\"language-sh\">$ brew install yuicompressor<\/code><\/pre>\n<h3>\u5b9f\u884c<\/h3>\n<ul>\n<li>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u306b\u30c6\u30ad\u30c8\u30fc\u306aJS\u30d5\u30a1\u30a4\u30eb untitled.js \u3092\u7528\u610f<\/li>\n<li>\u5727\u7e2e\u3057\u305f\u4e0a\u3067 untitled.min.js \u3068\u3057\u3066\u51fa\u529b\u3059\u308b<\/li>\n<\/ul>\n<pre><code class=\"language-sh\">$ yuicompressor untitled.js -o untitled.min.js<\/code><\/pre>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<ul>\n<li>Facebook SDK\u306e\u30bd\u30fc\u30b9\u3092\u5727\u7e2e\u3057\u3066\u307f\u305f\u3002\u5727\u7e2e\u524d\u306f\u4ee5\u4e0b\uff08422\u30d0\u30a4\u30c8\uff09\u3002<\/li>\n<\/ul>\n<pre><code class=\"language-javascript\">window.fbAsyncInit = function() {\nFB.init({\nappId      : 'XXXXXXXXXXXXXXX',\nxfbml      : true,\nversion    : 'v3.3'\n});\nFB.AppEvents.logPageView();\n};\n\n(function(d, s, id){\nvar js, fjs = d.getElementsByTagName(s)[0];\nif (d.getElementById(id)) {return;}\njs = d.createElement(s); js.id = id;\njs.src = \"https:\/\/connect.facebook.net\/en_US\/sdk.js\";\nfjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));<\/code><\/pre>\n<ul>\n<li>\u5727\u7e2e\u5f8c\u306f\u4ee5\u4e0b\uff08351\u30d0\u30a4\u30c8\uff09\u3002<\/li>\n<\/ul>\n<pre><code>window.fbAsyncInit=function(){FB.init({appId:\"XXXXXXXXXXXXXXX\",xfbml:true,version:\"v3.3\"});FB.AppEvents.logPageView()};(function(e,a,f){var c,b=e.getElementsByTagName(a)[0];if(e.getElementById(f)){return}c=e.createElement(a);c.id=f;c.src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js\";b.parentNode.insertBefore(c,b)}(document,\"script\",\"facebook-jssdk\"));<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sublime Text \u4e0a\u3067\u30b3\u30fc\u30c9\u306e\u5727\u7e2e\u51e6\u7406\u3092\u3059\u308b\u306e\u306b\u3001Package Control \u304b\u3089\u300cYUI Compressor\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30d2\u30c3\u30c8\u3057\u306a\u304b\u3063\u305f\u306e\u3067\u3001Terminal \u4e0a\u3067\u30b5\u30af\u30c3\u3068\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[88,45,15],"class_list":["post-1300","post","type-post","status-publish","format-standard","hentry","category-mac","tag-java","tag-javascript","tag-terminal"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1300"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1300\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}