{"id":701,"date":"2021-12-07T10:54:05","date_gmt":"2021-12-07T01:54:05","guid":{"rendered":"https:\/\/osora.work\/blog\/?p=701"},"modified":"2021-12-07T13:53:08","modified_gmt":"2021-12-07T04:53:08","slug":"100mai%e3%82%a2%e3%83%97%e3%83%aa%e9%96%8b%e7%99%ba%e3%81%9d%e3%81%ae2","status":"publish","type":"post","link":"https:\/\/osora.ne0n.xyz\/blog\/701","title":{"rendered":"100mai\u30a2\u30d7\u30ea\u958b\u767a[\u305d\u306e2]"},"content":{"rendered":"\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3092\u3042\u3089\u304b\u305f\u6c7a\u3081\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n\n\n\n<p>vue create\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306fCSS\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3068PWA\u306e\u30b5\u30dd\u30fc\u30c8\u3068BABEL\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u9078\u629e\u3057\u305f\u306f\u305a\u3002<br>\u3061\u306a\u307f\u306bVue2\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mai \n -node_modules\n  | \u306a\u3093\u304b\u3044\u3063\u3071\u3044\u3042\u308b\n -public\n  | img(favicon\u3068\u304b\u81ea\u52d5\u751f\u6210\u3055\u308c\u305f\u3084\u3064)\n  | index.html(fontawesome\u3092\u8aad\u307f\u8fbc\u3093\u3067\u308b(\u2190css\u304b\u3089\u3067\u3082import\u3067\u304d\u308b))\n -src\n  | assets\n    - img(jpeg\u3068png)\n    - svg(icon\u7528\u306esvg)\n    - scss(css\u306e\u5171\u901a\u95a2\u6570\u3068\u304b)\n  | components(\u5f8c\u8ff0)\n  | css(reset.css)\n  | router\n  | store\n  | views(\u5f8c\u8ff0)\n package.json\n vue.config.js<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">vue\u3067scss\u306e\u5171\u901a\u95a2\u6570\u3092\u4f7f\u3044\u305f\u3044<\/h2>\n\n\n\n<p>vue create\u306e\u3068\u304d\u306bcss\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u4f7f\u3046\u3088\u3063\u3066\u6307\u5b9a\u3059\u308b\u3068\u300csass-loader\u300d\u304c\u81ea\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b(\u5fd8\u308c\u3066\u3082\u3042\u3068\u304b\u3089\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b)\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u305d\u308c\u3060\u3051\u3060\u3068\u4f7f\u3048\u306a\u3044\u307d\u304f\u3066\u3001\u305d\u306e\u305f\u3081\u306b\u308f\u3056\u308f\u3056\u300cvue.config.js\u300d\u3092\u3064\u304f\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u2193\u4e2d\u8eab<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>module.exports = {\n  css: {\n    loaderOptions: {\n      sass: {\n        additionalData: &#39;@import &quot;@\/assets\/scss\/style.scss&quot;;&#39;\n      }\n    }\n  }\n};<\/code><\/pre><\/div>\n\n\n\n<p>\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<br><a href=\"https:\/\/online-study.jp\/5821\/\">https:\/\/online-study.jp\/5821\/<\/a><\/p>\n\n\n\n<p>prependData\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u306badditionalData\u4f7f\u3048\u3063\u3066\u66f8\u3044\u3066\u3042\u3063\u305f\u304b\u3089\u5909\u3048\u3061\u3083\u3063\u305f\u3002<br>\u306a\u3093\u304b6\u56de\u304f\u3089\u3044\u540c\u3058\u30b3\u30fc\u30c9\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3051\u3069\u73fe\u72b6\u306f\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3088\u3057(\u3088\u304f\u306a\u3044)\u3002<br>sass-loader\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u3082\u3042\u308b\u304b\u3089\u305d\u3053\u898b\u308c\u3070\u306a\u3093\u304b\u308f\u304b\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u4f59\u8ac7\uff1a<br>vue create\u3067TypeScript\u4f7f\u3046\u8a2d\u5b9a\u306b\u3059\u308b\u3068\u3084\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u8272\u3093\u306a\u3068\u3053\u66f8\u304d\u63db\u3048\u306a\u304d\u3083\u3044\u3051\u306a\u304b\u3063\u305f\u304b\u3089\u3084\u3081\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">views\u3068components\u306e\u4e2d\u8eab<\/h2>\n\n\n\n<p>views\u306b\u306f\u3082\u3068\u3082\u3068\u300cHome.vue\u300d\u300cAbout.vue\u300d\u304c\u5165\u3063\u3066\u305f\u304b\u3089\u300cURL\u3068\u304b\u30da\u30fc\u30b8\u540d\u5909\u3048\u305f\u3044\u3084\u3064\u5165\u308c\u3068\u3051\u3070\u3044\u3044\u304b\u306a\uff1f\u300d\u3063\u3066\u611f\u3058\u3067\u30ea\u30f3\u30af\u8981\u7d20\u304b\u3089\u98db\u3076\u30da\u30fc\u30b8\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u308c\u305f\u3002<br>\u4f3c\u305f\u3088\u3046\u306a\u69cb\u6210\u306e\u30da\u30fc\u30b8\u3082\u3042\u308b\u306e\u3067\u305d\u306e\u5206\u306fvue router\u306e\u307f\u5206\u5c90\u3002<\/p>\n\n\n\n<p>components\u306e\u4e2d\u8eab\u306fAtomicDesign\u98a8\u306bmodules\u3068parts\u30d5\u30a9\u30eb\u30c0\u306b\u5206\u3051\u305f\u3002<br>modules\u306f\u300cHeader.vue\u300d\u3068\u304b\u300cChallengeList.vue\u300d\u3068\u304b\u30bb\u30af\u30b7\u30e7\u30f3\u3054\u3068\u306b\u5206\u3051\u3089\u308c\u305d\u3046\u306a\u30d1\u30fc\u30c4\u3002<br>parts\u306f\u30ea\u30b9\u30c8\u306e\u7e70\u308a\u8fd4\u3057\u8981\u7d20\u3068\u304b\u6c4e\u7528\u7684\u306a\u30dc\u30bf\u30f3\u3068\u304b\u8868\u793a\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u305f\u3044(popup\u3068\u304b)\u8981\u7d20\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p><br>Vue.js \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210 \u8272\u3005\u8a66\u3057\u3066\u307f\u305f<br><a href=\"https:\/\/qiita.com\/tockn\/items\/2ce68b99e0839df52200\">https:\/\/qiita.com\/tockn\/items\/2ce68b99e0839df52200<\/a> &#8211; Qiita<br>\u3044\u308d\u3044\u308d\u898b\u305f\u3051\u3069\u4e00\u756a\u53c2\u8003\u306b\u306a\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6b21\u306f\u4eee\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3068\u30dc\u30bf\u30f3\u8981\u7d20\u306e\u52d5\u4f5c\u78ba\u8a8d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3092\u3042\u3089\u304b\u305f\u6c7a\u3081\u305f\u306e\u3067\u30e1\u30e2\u3002 vue create\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306fCSS\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3068PWA\u306e\u30b5\u30dd\u30fc\u30c8\u3068BABEL\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u9078\u629e\u3057\u305f\u306f\u305a\u3002\u3061\u306a\u307f\u306bVue2\u3067\u3059\u3002 vue\u3067scss\u306e\u5171\u901a\u95a2\u6570\u3092\u4f7f\u3044\u305f\u3044 vu &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,12],"tags":[],"_links":{"self":[{"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/posts\/701"}],"collection":[{"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/comments?post=701"}],"version-history":[{"count":2,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/posts\/701\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/posts\/701\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/media?parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/categories?post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osora.ne0n.xyz\/blog\/wp-json\/wp\/v2\/tags?post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}