{"id":2555,"date":"2018-11-24T04:28:15","date_gmt":"2018-11-23T19:28:15","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=2555"},"modified":"2018-11-24T04:28:15","modified_gmt":"2018-11-23T19:28:15","slug":"%e3%81%9f%e3%81%a3%e3%81%9f%ef%bc%93%e3%82%b9%e3%83%86%e3%83%83%e3%83%97%ef%bc%81laravel%e3%81%a7npm%e3%83%91%e3%83%83%e3%82%b1%e3%83%bc%e3%82%b8%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=2555","title":{"rendered":"\u305f\u3063\u305f\uff13\u30b9\u30c6\u30c3\u30d7\uff01Laravel\u3067npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306fPHP\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3060\u3068\u3044\u3046\u306e\u306f\u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5b9f\u306fJavaScript\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9<code>npm<\/code>\u3068\u9023\u643a\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308b\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><code>npm<\/code>\u3092\u4f7f\u3046\u3068\u3001\u5fc5\u8981\u306a\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u81ea\u52d5\u7684\u306b\u89e3\u6c7a\u3057\u3066\u304f\u308c\u307e\u3059\u3057\u3001\u4f55\u3088\u308a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u3066\u304f\u308c\u308b\u305f\u3081\u3068\u3066\u3082\u91cd\u5b9d\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068JavaScript\u3068\u805e\u304f\u3068<code>cdn<\/code>\uff08\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308bJavaScript\u3084CSS\uff09\u3092\u601d\u3044\u51fa\u3059\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3084\u306f\u308a<code>cdn<\/code>\u306f\u4fbf\u5229\u306a\u5206\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5c06\u6765\u7684\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u3068JavaScript\u3084CSS\u304c\u8aad\u307f\u8fbc\u3081\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u30ea\u30b9\u30af\u304c\u6b8b\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u8003\u3048\u305f\u304f\u306f\u306a\u3044\u3067\u3059\u304c\u3001Google\u306e\u3088\u3046\u306b\u5f71\u97ff\u304c\u5927\u304d\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u30d0\u30c4\u30f3\uff01\u3068\u7d42\u4e86\u3055\u305b\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u8003\u3048\u3089\u308c\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u3046\u3057\u305f\u7406\u7531\u304b\u3089<code>cdn<\/code>\u306f\u4f7f\u308f\u305a\u306b\u30b5\u30a4\u30c8\u958b\u767a\u3057\u305f\u3044\u4eba\u3082\u5c11\u306a\u304b\u3089\u305a\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fLaravel\u3067<code>npm<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u308c\u3092\u5b9f\u969b\u306b\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u304b\u3089\u547c\u3073\u51fa\u3059\u307e\u3067\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u958b\u767a\u306e\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-427 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png\" alt=\"\" width=\"182\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png 182w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24-171x300.png 171w\" sizes=\"auto, (max-width: 182px) 100vw, 182px\" \/><\/p>\n<p>\u203b \u958b\u767a\u74b0\u5883\uff1a Laravel 5.7, node.js: 8.10, npm: 6.4<\/p>\n<h1>\u6e96\u5099<\/h1>\n<p><code>Laravel<\/code>\u304b\u3089<code>npm<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3059\u308b\u306b\u306f<code>Laravel Mix<\/code>\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>npm install<\/strong><\/pre>\n<p>\u203b \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u5185\u5bb9\u306f\u3059\u3067\u306b<code>package.json<\/code>\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068<code>node_modules<\/code>\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u3001\u3053\u306e\u4e2d\u306b<code>Laravel Mix<\/code>\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30b3\u30d4\u30fc\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u6642\u70b9\u3067<code>jQuery<\/code>\u3084<code>Vue.js<\/code>\u306a\u3069\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u3068\u3057\u3066\u4ee5\u524d\u516c\u958b\u3057\u305f <strong>&#8220;\u753b\u50cf\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u8868\u793a\u3067\u304d\u308bvue\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6&#8221;<\/strong> \u306e <a href=\"https:\/\/github.com\/SUKOHI\/v-preview-input\" target=\"_blank\" rel=\"noopener\">v-preview-input<\/a>\u00a0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b5\u30a4\u30c8\u4e0a\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>npm i v-preview-input --save<\/strong><\/pre>\n<h1>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3053\u3053\u304b\u3089<code>npm<\/code>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e2d\u304b\u3089\u5fc5\u8981\u306a\u3082\u306e\u3060\u3051\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\uff11\u3064\u306eJS\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\uff09\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001<code>resources\/js\/app.js<\/code>\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c<code>public\/js\/app.js<\/code>\u306e\u4e2d\u306b\u307e\u3068\u3081\u3089\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u521d\u671f\u72b6\u614b\u3067\u306f\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u542b\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002\uff08\u5b9f\u969b\u306b\u306f<code>bootstrap.js<\/code>\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u3066\u3001\u3053\u306e\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u307e\u3059\uff09<\/p>\n<ul>\n<li>lodash\u3000\u30fb\u30fb\u30fb\u3000\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u5909\u5316\u3055\u305b\u308b\u306a\u3069\u306e\u4fbf\u5229\u30d1\u30c3\u30b1\u30fc\u30b8<\/li>\n<li>popper\u3000\u30fb\u30fb\u30fb\u3000\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u8868\u793a<\/li>\n<li>jquery\u3000\u30fb\u30fb\u30fb\u3000JS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/li>\n<li>bootstrap\u3000\u30fb\u30fb\u30fb\u3000CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/li>\n<li>axios\u3000\u30fb\u30fb\u30fb\u3000Ajax\u901a\u4fe1<\/li>\n<li>Vue\u3000\u30fb\u30fb\u30fb\u3000JS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/li>\n<\/ul>\n<p>\u305f\u3060\u3001\u4eca\u56de\u306e\u30c6\u30b9\u30c8\u3067\u5fc5\u8981\u306a\u306e\u306f\u4ee5\u4e0b\u306e\uff12\u3064\u3060\u3051\u3067\u3059\u3002<\/p>\n<ul>\n<li>Vue.js\u672c\u4f53<\/li>\n<li>v-preview-input<\/li>\n<\/ul>\n<p>\u305d\u306e\u305f\u3081\u3001\u521d\u671f\u72b6\u614b\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u6b21\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u4f7f\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>\/\/ require('.\/bootstrap');<\/strong><\/pre>\n<pre><strong>\/\/ Vue.component('example-component', require('.\/components\/ExampleComponent.vue'));<\/strong><\/pre>\n<pre><strong>\/\/ const app = new Vue({<\/strong>\r\n<strong>\/\/     el: '#app'<\/strong>\r\n<strong>\/\/ });<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u307e\u3060\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u306a\u3044<code>v-preview-input<\/code>\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>window.Vue = require('vue'); \/\/ \u2190\u3053\u3053\u306f\u6700\u521d\u304b\u3089\u3042\u308a\u307e\u3059\r\n<strong>require('v-preview-input');<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>npm run dev<\/strong><\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u6210\u529f\u3059\u308b\u3068<code>app.js<\/code>\u5185\u306b<code>Vue<\/code>\u3068<code>v-preview-input<\/code>\u306e\u30b3\u30fc\u30c9\u304c\uff11\u3064\u306b\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u898b\u3066\u307f\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u5f62\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>window.Vue = __webpack_require__(***);<\/strong>\r\n<strong>__webpack_require__(***);<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b<code>Vue<\/code>\u3068<code>v-preview-input<\/code>\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>app.js\u3092\u547c\u3073\u51fa\u3059<\/h1>\n<p>\u3068\u3044\u3063\u3066\u3082\u901a\u5e38\u901a\u308a<code>&lt;script&gt;&lt;\/script&gt;<\/code>\u30bf\u30b0\u3092\u4f7f\u3063\u3066<code>app.js<\/code>\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;body&gt;\r\n    <strong>&lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;<\/strong>\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u308c\u3067\u3001\u3044\u3061\u3044\u3061<code>Vue.js<\/code>\u3068<code>v-preview-input<\/code>\u3092\u5404\u30da\u30fc\u30b8\u3067\u547c\u3073\u51fa\u3055\u306a\u304f\u3066\u3082<code>app.js<\/code>\u3060\u3051\u547c\u3073\u51fa\u3057\u3066\u3044\u308c\u3070\u5fc5\u8981\u306aJavaScript\u306f\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3082\u3061\u308d\u3093\u30d6\u30e9\u30a6\u30b6\u306e\u8a2d\u5b9a\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u4e3b\u8981\u306a\u30d6\u30e9\u30a6\u30b6\u306f\u521d\u671f\u72b6\u614b\u3067JavaScript\u3084CSS\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3064\u304f\u308b\u5834\u5408\u304c\u591a\u3044\u306e\u3067\u3001\u3082\u3057\u5225\u306e\u30da\u30fc\u30b8\u3078\u79fb\u52d5\u3057\u305f\u5834\u5408\u3001<code>app.js<\/code>\u306e\u8aad\u307f\u8fbc\u307f\u3092\u7701\u7565\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u3055\u304d\u307b\u3069<code>npm<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3072\u3068\u3064\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u304c\u3001Google \u306e\u958b\u767a\u8005\u30c4\u30fc\u30eb\u3092\u898b\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2557\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-51-20.png\" alt=\"\" width=\"575\" height=\"59\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-51-20.png 575w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-51-20-300x31.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>\u3053\u308c\u306f\u3001\u300c\u4eca\u3042\u306a\u305f\u304c\u4f7f\u3063\u3066\u3044\u308b\u306e\u306f\u958b\u767a\u8005\u7528\u306eVue\u3067\u3059\u3088\uff01\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3001\u3064\u307e\u308a\u306f\u300c\u3082\u3063\u3068\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u3066\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u672c\u756a\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u3042\u308a\u307e\u3059\u304b\u3089\u306d\uff01\u300d\u3068\u8a00\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u6700\u5f8c\u306b\u672c\u756a\u30d0\u30fc\u30b8\u30e7\u30f3\u306e<code>app.js<\/code>\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm run production<\/strong><\/pre>\n<p>\u304a\u305d\u3089\u304f\u4eca\u56de\u306f<code>npm run dev<\/code>\u3088\u308a\u3082\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u5148\u307b\u3069\u306e<code>app.js<\/code>\u306e\u5185\u5bb9\u3092\u3088\u308a\u30b3\u30f3\u30d1\u30af\u30c8\u306b\u3088\u308a\u9ad8\u901f\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u4f5c\u6210\u3055\u308c\u305f<code>app.js<\/code>\u306e\u4e2d\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2558\" style=\"border: 1px solid #ccc;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-57-23.png\" alt=\"\" width=\"673\" height=\"102\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-57-23.png 673w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-21-02-57-23-300x45.png 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/p>\n<p>\u4eca\u56de\u306f\u5148\u307b\u3069\u3068\u306f\u9055\u3063\u3066\u30b3\u30fc\u30c9\u304c\u6697\u53f7\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u3066\u6539\u884c\u3082\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305f\u3060\u3001\u3053\u308c\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u3059\u308b\u3068\u5143\u306e\u30b3\u30fc\u30c9\u3068\u540c\u3058\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u5b9f\u884c\u306b\u306f\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3057\u3066\u5148\u307b\u3069\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u6d88\u3048\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u672c\u756a\u7528\u306e<code>app.js<\/code>\u306f\u4f5c\u6210\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u3001\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u4e0d\u5411\u304d\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u9593\u306f<code>npm run dev<\/code>\u3067\u9ad8\u901f\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001\u958b\u767a\u304c\u5b8c\u4e86\u3057\u305f\u3089<code>npm run production<\/code>\u3067\u3088\u308a\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f<code>npm<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092<code>Laravel<\/code>\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u500b\u4eba\u3068\u3057\u3066\u306fJavaScript\u3084CSS\u3092\u3072\u3068\u3064\u306b\u307e\u3068\u3081\u308b\u306e\u306f\u4fdd\u5b88\u304c\u3057\u306b\u304f\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u597d\u304d\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30b5\u30a4\u30c8\u8868\u793a\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u306b\u306f\u6709\u52b9\u3067\u3059\u306e\u3067\u30b5\u30a4\u30c8\u306e\u30b3\u30f3\u30bb\u30d7\u30c8\u306b\u3088\u3063\u3066\u5168\u4f53\u7684\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u308a\u30d1\u30c3\u30b1\u30fc\u30b8\u90e8\u5206\u3060\u3051\u3092\u307e\u3068\u3081\u305f\u308a\u3068\u3001\u4f7f\u3044\u5206\u3051\u3092\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u5143\u3005\u306fJS\u3084CSS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f<code>bower<\/code>\u3067\u7ba1\u7406\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><code>bower<\/code>\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u5b9f\u884c\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u5185\u306b<code>bower_components<\/code>\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u304f\u308c\u3066\u305d\u306e\u4e2d\u306b<code>Vue<\/code>\u3084<code>\uff4aQuery<\/code>\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3054\u5b58\u77e5\u306e\u901a\u308a<code>bower<\/code>\u306f\u3059\u3067\u306b\u5229\u7528\u304c\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u672c\u5bb6\u306e\u30b5\u30a4\u30c8\u3067\u3082<code>Facebook<\/code>\u304c\u4f5c\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3<code>Yarn<\/code>\u3092\u4f7f\u3046\u3088\u3046\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e<code>Yarn<\/code>\u3082\u7d50\u5c40\u306f<code>npm<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30e1\u30a4\u30f3\u306f<code>npm<\/code>\u3068\u3044\u3046\u306e\u304c\u958b\u767a\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3001<code>Yarn<\/code>\u3092\u4f7f\u3046\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u65e9\u3044\u3068\u306e\u60c5\u5831\u3082\u3042\u308a\u3001\u4ee3\u66ff\u6848\u3068\u3057\u3066\u306f\u6b8b\u3057\u3066\u304a\u3053\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-519 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21.png\" alt=\"\" width=\"192\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21.png 192w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21-180x300.png 180w\" sizes=\"auto, (max-width: 192px) 100vw, 192px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001Laravel\u306fPHP\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3060\u3068\u3044\u3046\u306e\u306f\u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5b9f\u306fJavaScript\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9npm\u3068\u9023\u643a\u3059\u308b\u6a5f\u80fd\u304c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=2555\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u305f\u3063\u305f\uff13\u30b9\u30c6\u30c3\u30d7\uff01Laravel\u3067npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":2563,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3],"tags":[116],"class_list":["post-2555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-laravel","tag-npm"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2555"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2555\/revisions"}],"predecessor-version":[{"id":2565,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/2555\/revisions\/2565"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/2563"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}