{"id":3013,"date":"2018-05-28T10:00:18","date_gmt":"2018-05-28T01:00:18","guid":{"rendered":"https:\/\/blog.timecrowd.net\/?p=3013"},"modified":"2018-05-17T16:02:13","modified_gmt":"2018-05-17T07:02:13","slug":"automation-iconfont","status":"publish","type":"post","link":"https:\/\/blog.timecrowd.net\/automation-iconfont\/","title":{"rendered":"SVG\u306e\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<p>\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u7530\u4e2d\u3067\u3059\u3002<\/p>\n<p>TimeCrowd\u3067\u306f\u65e2\u5b58\u306e\u30a2\u30a4\u30b3\u30f3\u30bb\u30c3\u30c8\u306e\u4ed6\u306b\u3001\u307b\u3093\u306e\u3059\u3053\u3057\u3067\u3059\u304c\u81ea\u4f5c\u306e\u30a2\u30a4\u30b3\u30f3\u3082\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u505c\u6b62\u30dc\u30bf\u30f3\u306e\u3059\u3053\u3057\u3075\u304f\u3089\u3093\u3060\u25a0\u306a\u3093\u304b\u3082\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/05\/screenshot-timecrowd.net-2018.05.17-13-56-54.png\" alt=\"SVG\u306e\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b\" width=\"133\" height=\"59\" class=\"alignnone size-full wp-image-3014\" title=\"SVG\u306e\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b\" \/><\/p>\n<p>\u3064\u304f\u3063\u305f\u30a2\u30a4\u30b3\u30f3\u306f\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8(Webfont)\u306b\u3057\u3066\u3001\u30a2\u30d7\u30ea\u306e\u65b9\u304b\u3089\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u2026\u2026<br \/>\n<strong>\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u3059\u308b\u306e\u304c\u3051\u3063\u3053\u3046\u3081\u3093\u3069\u3046\u304f\u3055\u3044<\/strong>\u306e\u3067\u3059\u3002<\/p>\n<p>\u6bce\u56de\u3001\u65e2\u5b58\u306e\u30a2\u30a4\u30b3\u30f3\u30bb\u30c3\u30c8\u3068\u307e\u3068\u3081\u3066<a href=\"https:\/\/icomoon.io\/\" target=\"_blank\" title=title=\"SVG\u306e\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b\">IcoMoon<\/a>\u3067\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\n\u3053\u308c\u3092<strong>\u30ed\u30fc\u30ab\u30eb\u3067\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u3057\u3066\u304f\u308c\u308b<\/strong>\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u3002<\/p>\n<div id=\"toc_container\" class=\"toc_white no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#webpackwebfonts-loader\"><span class=\"toc_number toc_depth_1\">1<\/span> webpack\u3067webfonts-loader\u3092\u4f7f\u3046<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">2<\/span> \u7d50\u679c<\/a><\/li><\/ul><\/div>\n<h2><span id=\"webpackwebfonts-loader\">webpack\u3067webfonts-loader\u3092\u4f7f\u3046<\/span><\/h2>\n<p>\u2026\u3068\u3044\u3063\u3066\u3082\u6700\u8fd1\u306f\u4fbf\u5229\u306a\u3082\u306e\u3067\u3001webpack\u3067\u4e00\u767a\u306a\u306e\u3067\u3057\u305f\u3002<br \/>\nwebpack\u306f\u8272\u3005\u601d\u3046\u3068\u3053\u308d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3046\u3044\u3046\u76ee\u7684\u3060\u3068\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u3044\u304f\u3064\u304b\u985e\u4f3c\u306e\u3082\u306e\u306f\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001<a href=\"https:\/\/github.com\/jeerbl\/webfonts-loader\" targer=\"_blank\" title=\"SVG\u306e\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3059\u308b\" \/>webfonts-loader<\/a>\u3092\u4f7f\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>\r\n<code>npm install webfonts-loader --save-dev\r\n<\/code>\r\n<\/pre>\n<h3>\u8a2d\u5b9a<\/h3>\n<p>GitHub\u306b\u3042\u3063\u305f\u8a2d\u5b9a\u305d\u306e\u307e\u307e\u3067\u306f\u30a2\u30d7\u30ea\u304b\u3089\u306e\u8aad\u307f\u8fbc\u307f\u306b\u554f\u984c\u304c\u3042\u3063\u305f\u305f\u3081\u3001\u5c11\u3005\u5909\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><small>webpack.config.js<\/small><\/p>\n<pre>\r\n<code>{\r\n    test: \/\\.font\\.js\/,\r\n    use: [\r\n      'style-loader',\r\n      'css-loader',\r\n      'webfonts-loader'\r\n    ]\r\n  }\r\n<\/code>\r\n<\/pre>\n<p><small>myfont.font.js<\/small><\/p>\n<pre>\r\n<code>module.exports = {\r\n  'files': [\r\n    'path\/to\/svg-dir\/**\/*.svg'\r\n  ],\r\n  'fontName': 'myfonticons',\r\n  'classPrefix': 'icon-',\r\n  'baseSelector': '.icon',\r\n  'types': ['eot', 'woff', 'woff2', 'ttf', 'svg'],\r\n  'embed': true, \/\/ \u57cb\u3081\u8fbc\u3080\r\n  'fileName': 'app.[fontname].[chunkhash].[ext]'\r\n}\r\n<\/code>\r\n<\/pre>\n<h2><span id=\"i\">\u7d50\u679c<\/span><\/h2>\n<p>\u3053\u308c\u3067Illustrator\u3067\u3064\u304f\u3063\u305f\u30a2\u30a4\u30b3\u30f3\u3092SVG\u306b\u51fa\u529b\u3057\u3066\u6307\u5b9a\u5834\u6240\u306b\u7f6e\u304f\u3068\u3001<br \/>\n<strong>\u81ea\u52d5\u7684\u306b\u691c\u77e5\u3057\u3066\u52dd\u624b\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u3092\u751f\u6210<\/strong>\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n<p>\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u5316\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u3046\u3067\u5fc3\u304c\u6298\u308c\u308b\u3053\u3068\u3082\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u7530\u4e2d\u3067\u3059\u3002 TimeCrowd\u3067\u306f\u65e2\u5b58\u306e\u30a2\u30a4\u30b3\u30f3\u30bb\u30c3\u30c8\u306e\u4ed6\u306b\u3001\u307b\u3093\u306e\u3059\u3053\u3057\u3067\u3059\u304c\u81ea\u4f5c\u306e\u30a2\u30a4\u30b3\u30f3\u3082\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u505c\u6b62\u30dc\u30bf&#8230;","protected":false},"author":6,"featured_media":3023,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":""},"categories":[5],"tags":[42,37,41,13],"_links":{"self":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/3013"}],"collection":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/comments?post=3013"}],"version-history":[{"count":7,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/3013\/revisions"}],"predecessor-version":[{"id":3021,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/3013\/revisions\/3021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/media\/3023"}],"wp:attachment":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/media?parent=3013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/categories?post=3013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/tags?post=3013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}