{"id":10003,"date":"2021-05-23T13:18:58","date_gmt":"2021-05-23T04:18:58","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10003"},"modified":"2021-05-23T13:18:58","modified_gmt":"2021-05-23T04:18:58","slug":"laravel8%e3%81%aevue%e3%82%92vue2%e3%81%8b%e3%82%89vue3%e3%81%ab%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10003","title":{"rendered":"laravel8\u306eVue\u3092Vue2\u304b\u3089Vue3\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f"},"content":{"rendered":"\n<p>\u4f5c\u3063\u3066\u3044\u305f\u30b5\u30a4\u30c8\u306eLaravel\u3068\u4f7f\u3063\u3066\u3044\u305fVue\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c2\u7cfb\u3060\u3063\u305f\u306e\u304b\u30893\u7cfb\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u624b\u9806\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Vue\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3067<\/p>\n\n\n\n<p>npm list vue<\/p>\n\n\n\n<p>vue@2.6.12<\/p>\n\n\n\n<p>\uff12\u7cfb\u306a\u6a21\u69d8\u3002\u3053\u308c\u3092\uff13\u7cfb\u306b\u4e0a\u3052\u305f\u3044<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">package.json\u306e\u7de8\u96c6<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306epackage.json\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u7de8\u96c6\u524d\u306b\u3001package.json\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5f8c\u3001\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u524a\u9664<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\"vue\": \"^2.6.12\",\n\"vue-loader\": \"^15.9.6\",\n\"vue-template-compiler\": \"^2.6.12\"<\/code><\/pre>\n\n\n\n<p>Vue3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c<\/p>\n\n\n\n<p>Vue3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092npm\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">npm install -save-dev vue@next<\/pre>\n\n\n\n<p>\u305d\u306e\u5f8c\u3001\u518d\u3073 vue \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d<\/p>\n\n\n\n<p>npm list vue<\/p>\n\n\n\n<p>vue@3.0.11 <\/p>\n\n\n\n<p>Vue3\u7cfb\u306b\u4e0a\u304c\u3063\u3066\u308b\uff01<\/p>\n\n\n\n<p>num run dev \u3092\u5b9f\u884c\u3002<\/p>\n\n\n\n<p>\u5909\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u4e01\u5be7\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u308d\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n\n\n\n<p>npm install @vue\/compiler-sfc vue-loader@^16.1.0 &#8211;save-dev &#8211;legacy-peer-deps<\/p>\n\n\n\n<p>\u4e0a\u8a18\u3092\u5b9f\u884c\u5f8c\u3001npm run dev\u3092\u5b9f\u884c\u3002<\/p>\n\n\n\n<p>\u554f\u984c\u306a\u304f\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u3042\u3068\u306f\u30a2\u30d7\u30ea\u5074\u306eVue\u306e\u30bd\u30fc\u30b9\u3092\u3001Vue3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u66f8\u304d\u76f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306f\u3001\u3053\u3053\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/blog.capilano-fw.com\/?p=8015#Laravel_Mix_5_6\">Vue 3 \u3092 Laravel 8\u3067\u4f7f\u3046\u65b9\u6cd5\uff08npm\uff09 |  console dot log<\/a><\/p>\n\n\n\n<p>\u3053\u308c\u3067\u3001\u3046\u307e\u304f\u884c\u3063\u305f\u30fb\u30fb\u30fb\u304b\u3068\u601d\u3044\u304d\u3084\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u306f\u3046\u307e\u304f\u52d5\u3044\u305f\u306e\u306b\u3001\u672c\u756a\u74b0\u5883\u3067\u306f\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u6563\u3005\u8abf\u3079\u305f\u6319\u3052\u304f\u3001\u539f\u56e0\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong>CDN\u306e\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong><\/p>\n\n\n\n<p>Laravel + Vue\u3067\u306f\u3001npm run dev\u3067\u3001app.js\u3092\u30d3\u30eb\u30c9\u3059\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p>\u3053\u308c\u304c\u3001\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u304cCDN\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u539f\u56e0\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>CDN\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3059\u308b\u3053\u3068\u3067\u3001\u7121\u4e8b\u306b\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u3001\u3053\u3053\u307e\u3067\u3067\u3088\u3046\u3084\u304fLaravel8 + Vue3\u3067\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8868\u793a\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u30b9\u30bf\u30fc\u30c8\u5730\u70b9\u306b\u7acb\u3064\u3060\u3051\u3067\u3082\u5927\u5909\u3067\u3059\u306d\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u3063\u3066\u3044\u305f\u30b5\u30a4\u30c8\u306eLaravel\u3068\u4f7f\u3063\u3066\u3044\u305fVue\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c2\u7cfb\u3060\u3063\u305f\u306e\u304b\u30893\u7cfb\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002 \u4ee5\u4e0b\u3001\u624b\u9806\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3067\u3059\u3002 Vue\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d\u65b9\u6cd5 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3067 npm list v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,176,131],"tags":[],"class_list":["post-10003","post","type-post","status-publish","format-standard","hentry","category-laravel","category-vue","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10003"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10003\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}