{"id":1907,"date":"2021-08-30T11:05:30","date_gmt":"2021-08-30T02:05:30","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=1907"},"modified":"2021-08-30T11:05:32","modified_gmt":"2021-08-30T02:05:32","slug":"post-1907","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/08\/30\/1907\/","title":{"rendered":"\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u305f css \u3084 Javascript \u3092 minify \u3059\u308b"},"content":{"rendered":"\n<p>\u3000\u30b5\u30fc\u30d0\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u524a\u6e1b\u3059\u308b\u305f\u3081\u306b\u3001\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u305f css \u30d5\u30a1\u30a4\u30eb\u3084 js \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u3002\u305f\u3060\u3001zip \u306a\u3069\u306e\u3088\u3046\u306b\u30d0\u30a4\u30ca\u30ea\u3067\u5727\u7e2e\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002css \u3084 Javascript \u306e\u6587\u6cd5\u306b\u5247\u308a\u3001\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4f8b\u3048\u3070\u3001\u4e21\u65b9\u5171\u3001\u6539\u884c\u306f\u306a\u304f\u3066\u3082\u3044\u3044\u306e\u3067\u3001\u6539\u884c\u3092\u524a\u9664\u3057\u305f\u308a\u3001\u4f59\u5206\u306a\u7a7a\u767d\u3092\u524a\u9664\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u3059\u3002\u3053\u306e\u69d8\u306b\u30b5\u30a4\u30ba\u3092\u6700\u5c0f\u306b\u3059\u308b\u3053\u3068\u3092\u3001minify \u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000minify \u3059\u308b web \u30b5\u30fc\u30d3\u30b9\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30c4\u30fc\u30eb\u3092\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS \u3092 minify \u3059\u308b cleancss<\/h2>\n\n\n\n<p>\u3000\u6539\u884c\u3084\u7a7a\u767d\u3092\u524a\u9664\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u8272\u306e\u6307\u5b9a\u3082\u3001RGB \u3092\u8272\u540d\u306b\u3057\u3066\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3057\u305f\u308a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u7de8\u96c6\u3057\u3084\u3059\u3044\u5f62\u3067 css \u3092\u4f5c\u6210\u3057\u305f\u3082\u306e\u3092\u3001minify \u3057\u305f\u7d50\u679c\u3092\u51fa\u529b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002nodejs \u306a\u3069\u3082\u5fc5\u8981\u3067\u3059\u3002\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ sudo apt-get install -y cleancss\n\u30fb\n\u30fb<\/pre>\n\n\n\n<p>\u3000\u5f15\u6570\u306b\u30a8\u30c7\u30a3\u30bf\u306a\u3069\u3067\u4f5c\u6210\u3057\u305f css \u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u6a19\u6e96\u51fa\u529b\u306b\u7d50\u679c\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ cleancss sites.txt\n\u30fb\n\u30fb<\/pre>\n\n\n\n<p>\u3000\u6307\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u306b\u306f -o \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ cleancss sites.txt -o sites.css<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Javascript \u3092 minify \u3059\u308b uglifyjs<\/h2>\n\n\n\n<p>\u3000\u3053\u308c\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ sudo apt-get install -y uglifyjs\n\u30fb\n\u30fb<\/pre>\n\n\n\n<p>\u3000\u4f7f\u3044\u65b9\u306f cleancss \u3068\u307b\u307c\u540c\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ uglifyjs functons.txt -o functions.js<\/pre>\n\n\n\n<p>\u3000zip \u306a\u3069\u306e\u5727\u7e2e\u306b\u6bd4\u3079\u308b\u3068\u3001\u305d\u308c\u307b\u3069\u30b5\u30a4\u30ba\u306f\u6e1b\u308a\u307e\u305b\u3093\u304c\u3001\u5875\u3082\u7a4d\u3082\u308c\u3070\u30fb\u30fb\u30fb\u306a\u306e\u3067\u3001\u3084\u3089\u306a\u3044\u3088\u308a\u3084\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u30b5\u30fc\u30d0\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u524a\u6e1b\u3059\u308b\u305f\u3081\u306b\u3001\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u305f css \u30d5\u30a1\u30a4\u30eb\u3084 js \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u3002\u305f\u3060\u3001zip \u306a\u3069\u306e\u3088\u3046\u306b\u30d0\u30a4\u30ca\u30ea\u3067\u5727\u7e2e\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002css \u3084 Javasc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1907","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1907"}],"version-history":[{"count":3,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1907\/revisions"}],"predecessor-version":[{"id":1910,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1907\/revisions\/1910"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}