{"id":1850,"date":"2019-01-03T22:46:34","date_gmt":"2019-01-03T13:46:34","guid":{"rendered":"https:\/\/lovelinux.mydns.jp\/?p=1850"},"modified":"2019-01-03T22:46:34","modified_gmt":"2019-01-03T13:46:34","slug":"laravel-%e3%81%a8-react%e3%81%a7-laravel-mix%e3%82%92%e4%bd%bf%e3%81%84app-css%e3%81%a8app-js%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e7%ae%a1%e7%90%86%e3%82%92%e6%9c%89%e5%8a%b9","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=1850","title":{"rendered":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b"},"content":{"rendered":"<p>Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09<\/p>\n<h3>webpack.mix.js\u3092\u7de8\u96c6<\/h3>\n<p>webpack.mix.js<\/p>\n<p>[bash]<br \/>\nmix.react(&#8216;resources\/assets\/js\/app.js&#8217;, &#8216;public\/js&#8217;)<br \/>\n   .sass(&#8216;resources\/assets\/sass\/app.scss&#8217;, &#8216;public\/css&#8217;)<br \/>\n   .sourceMaps();<\/p>\n<p>+ if (mix.inProduction()) {<br \/>\n+    mix.version();<br \/>\n+ }<\/p>\n<p>[\/bash]<\/p>\n<h3>\u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6<\/h3>\n<p>React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002<br \/>\napp.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<p>[bash]<br \/>\n&#8211; <link href=\"\/css\/app.css\" rel=\"stylesheet\" type=\"text\/css\">\n<p>+ <link href=\"{{ url(mix('\/css\/app.css')) }}\" rel=\"stylesheet\" type=\"text\/css\">\n<p>&#8211; <script src=\"{{asset('\/js\/app.js')}}\"><\/script><\/p>\n<p>+ <script src=\"{{url(mix('\/js\/app.js'))}}\"><\/script><\/p>\n<p>[\/bash]<\/p>\n<h3>\u52d5\u4f5c\u691c\u8a3c<\/h3>\n<p>\u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01<\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix.png\" alt=\"laravel-mix\" width=\"416\" height=\"248\" class=\"alignnone size-full wp-image-1852\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix.png 416w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix-300x179.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react(&#8216;resources\/assets\/js\/app.js&#8217;, &#8216;public\/js&#8217;) .sass(&#8216;resources\/assets\/sass\/app.scss&#8217;, &#8216;public\/css&#8217;) .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] &#8211; + &#8211; + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01<\/p>\n","protected":false},"author":1,"featured_media":1851,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[77],"tags":[99,100,86],"class_list":{"0":"post-1850","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-react","8":"tag-laravel","9":"tag-laravel-mix","10":"tag-react"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react(&#039;resources\/assets\/js\/app.js&#039;, &#039;public\/js&#039;) .sass(&#039;resources\/assets\/sass\/app.scss&#039;, &#039;public\/css&#039;) .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"hiroshi\"\/>\n\t<meta name=\"google-site-verification\" content=\"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/lovelinux.mydns.jp\/?p=1850\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Love Linux | enjoy using linux for programming flatform\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b\" \/>\n\t\t<meta property=\"og:description\" content=\"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react(&#039;resources\/assets\/js\/app.js&#039;, &#039;public\/js&#039;) .sass(&#039;resources\/assets\/sass\/app.scss&#039;, &#039;public\/css&#039;) .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/lovelinux.mydns.jp\/?p=1850\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-01-03T13:46:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-01-03T13:46:34+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react(&#039;resources\/assets\/js\/app.js&#039;, &#039;public\/js&#039;) .sass(&#039;resources\/assets\/sass\/app.scss&#039;, &#039;public\/css&#039;) .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#article\",\"name\":\"Laravel \\u3068 React\\u3067 Laravel Mix\\u3092\\u4f7f\\u3044app.css\\u3068app.js\\u306e\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u7ba1\\u7406\\u3092\\u6709\\u52b9\\u306b\\u3059\\u308b\",\"headline\":\"Laravel \\u3068 React\\u3067 Laravel Mix\\u3092\\u4f7f\\u3044app.css\\u3068app.js\\u306e\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u7ba1\\u7406\\u3092\\u6709\\u52b9\\u306b\\u3059\\u308b\",\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/laravel-mix2.png\",\"width\":824,\"height\":295},\"datePublished\":\"2019-01-03T22:46:34+09:00\",\"dateModified\":\"2019-01-03T22:46:34+09:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#webpage\"},\"articleSection\":\"React, laravel, laravel-mix, react\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"name\":\"React\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"position\":3,\"name\":\"React\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#listItem\",\"name\":\"Laravel \\u3068 React\\u3067 Laravel Mix\\u3092\\u4f7f\\u3044app.css\\u3068app.js\\u306e\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u7ba1\\u7406\\u3092\\u6709\\u52b9\\u306b\\u3059\\u308b\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#listItem\",\"position\":4,\"name\":\"Laravel \\u3068 React\\u3067 Laravel Mix\\u3092\\u4f7f\\u3044app.css\\u3068app.js\\u306e\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u7ba1\\u7406\\u3092\\u6709\\u52b9\\u306b\\u3059\\u308b\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"name\":\"React\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1\",\"name\":\"hiroshi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"hiroshi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#webpage\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850\",\"name\":\"Laravel \\u3068 React\\u3067 Laravel Mix\\u3092\\u4f7f\\u3044app.css\\u3068app.js\\u306e\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u7ba1\\u7406\\u3092\\u6709\\u52b9\\u306b\\u3059\\u308b\",\"description\":\"Laravel\\u3068React\\u3092\\u4f7f\\u3063\\u3066\\u3001\\u30b5\\u30fc\\u30d3\\u30b9\\u3092\\u4f5c\\u3063\\u305f\\u306f\\u3044\\u3044\\u304c\\u3001\\u3044\\u3056\\u30ea\\u30ea\\u30fc\\u30b9\\u3057\\u3066\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u5468\\u308a\\u306e\\u8abf\\u6574\\u3092\\u304b\\u3051\\u3066\\u3082\\u3001\\u306a\\u304b\\u306a\\u304b\\u30af\\u30e9\\u30a4\\u30a2\\u30f3\\u30c8\\u30b5\\u30a4\\u30c9\\u3067\\u5909\\u66f4\\u304c\\u6709\\u52b9\\u306b\\u3055\\u308c\\u306a\\u3044\\u30b1\\u30fc\\u30b9\\u304c\\u591a\\u304b\\u3063\\u305f\\u3002 \\u3053\\u308c\\u306f\\u5f53\\u305f\\u308a\\u524d\\u306e\\u8a71\\u3067\\u3001Laravel\\u5185\\u304b\\u3089 \\u30b3\\u30f3\\u30d1\\u30a4\\u30eb\\u6e08\\u307f\\u306eapp.css\\u3068app.js\\u3092\\u304f\\u3060\\u3055\\u3044\\u3068\\u30ed\\u30b8\\u30c3\\u30af\\u3092\\u66f8\\u3044\\u3066\\u3044\\u308b\\u304b\\u3089\\u3067\\u3042\\u308b\\u3002 \\u3053\\u308c\\u3001\\u30d0\\u30fc\\u30b8\\u30e7\\u30f3\\u3092\\u4e0a\\u3052\\u308b\\u3054\\u3068\\u306b\\u624b\\u52d5\\u3067\\u3001\\u30d5\\u30a1\\u30a4\\u30eb\\u540d\\u3092\\u5909\\u66f4\\u3057\\u305f\\u308a\\u3001\\u30d1\\u30e9\\u30e1\\u30fc\\u30bf\\u30fc\\u3092\\u8ffd\\u52a0\\u3057\\u3066\\u3001\\u5f37\\u5236\\u7684\\u306b\\u518d\\u8aad\\u8fbc\\u3055\\u305b\\u308b\\u65b9\\u6cd5\\u3082\\u306a\\u3044\\u3067\\u306f\\u306a\\u3044\\u304c\\u3001\\u30b9\\u30de\\u30fc\\u30c8\\u3067\\u306f\\u306a\\u3044\\u3002 \\u305d\\u3053\\u3067\\u3069\\u3046\\u3059\\u308b\\u304b\\u3002 \\u30d7\\u30ed\\u30b8\\u30a7\\u30af\\u30c8\\u306e\\u30eb\\u30fc\\u30c8\\u306b\\u3042\\u308b Laravel Mix\\u306e\\u30d5\\u30a1\\u30a4\\u30eb\\u306b\\u4ee5\\u4e0b\\u3092\\u8ffd\\u8a18\\uff08\\u672b\\u5c3e3\\u884c\\uff09 webpack.mix.js\\u3092\\u7de8\\u96c6 webpack.mix.js [bash] mix.react('resources\\\/assets\\\/js\\\/app.js', 'public\\\/js') .sass('resources\\\/assets\\\/sass\\\/app.scss', 'public\\\/css') .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\\\/bash] \\u30eb\\u30fc\\u30c8\\u306b\\u306a\\u308bblade\\u30d5\\u30a1\\u30a4\\u30eb\\u7de8\\u96c6 React\\u306e\\u30eb\\u30fc\\u30c8\\u3068\\u306a\\u308bblade\\u30d5\\u30a1\\u30a4\\u30eb\\u3092\\u8abf\\u6574\\u3059\\u308b\\u3002 app.css\\u306e\\u884c\\u3068\\u3001app.js\\u306e\\u884c\\u3092\\u4ee5\\u4e0b\\u306e\\u3088\\u3046\\u306b\\u3059\\u308b\\u3002 [bash] - + - + [\\\/bash] \\u52d5\\u4f5c\\u691c\\u8a3c \\u30ea\\u30ea\\u30fc\\u30b9\\u4f5c\\u696d\\u3092\\u3057\\u3066\\u307f\\u3066\\u3001Chrome\\u3067\\u8aad\\u307f\\u8fbc\\u3093\\u3067\\u307f\\u3066\\u3001app.js\\u304c\\u4ee5\\u4e0b\\u306e\\u3088\\u3046\\u306b\\u306a\\u3063\\u3066\\u3044\\u308c\\u3070\\u3001\\u6210\\u529f\\uff01\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/laravel-mix2.png\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850\\\/#mainImage\",\"width\":824,\"height\":295},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1850#mainImage\"},\"datePublished\":\"2019-01-03T22:46:34+09:00\",\"dateModified\":\"2019-01-03T22:46:34+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/\",\"name\":\"Love Linux\",\"description\":\"enjoy using linux for programming flatform\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","description":"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react('resources\/assets\/js\/app.js', 'public\/js') .sass('resources\/assets\/sass\/app.scss', 'public\/css') .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01","canonical_url":"https:\/\/lovelinux.mydns.jp\/?p=1850","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#article","name":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","headline":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix2.png","width":824,"height":295},"datePublished":"2019-01-03T22:46:34+09:00","dateModified":"2019-01-03T22:46:34+09:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#webpage"},"isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#webpage"},"articleSection":"React, laravel, laravel-mix, react"},{"@type":"BreadcrumbList","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","position":1,"name":"Home","item":"https:\/\/lovelinux.mydns.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/lovelinux.mydns.jp\/?cat=2","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","name":"React"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","position":3,"name":"React","item":"https:\/\/lovelinux.mydns.jp\/?cat=77","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#listItem","name":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#listItem","position":4,"name":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","name":"React"}}]},{"@type":"Person","@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author","url":"https:\/\/lovelinux.mydns.jp\/?author=1","name":"hiroshi","image":{"@type":"ImageObject","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g","width":96,"height":96,"caption":"hiroshi"}},{"@type":"WebPage","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#webpage","url":"https:\/\/lovelinux.mydns.jp\/?p=1850","name":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","description":"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react('resources\/assets\/js\/app.js', 'public\/js') .sass('resources\/assets\/sass\/app.scss', 'public\/css') .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/#website"},"breadcrumb":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#breadcrumblist"},"author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"creator":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/01\/laravel-mix2.png","@id":"https:\/\/lovelinux.mydns.jp\/?p=1850\/#mainImage","width":824,"height":295},"primaryImageOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1850#mainImage"},"datePublished":"2019-01-03T22:46:34+09:00","dateModified":"2019-01-03T22:46:34+09:00"},{"@type":"WebSite","@id":"https:\/\/lovelinux.mydns.jp\/#website","url":"https:\/\/lovelinux.mydns.jp\/","name":"Love Linux","description":"enjoy using linux for programming flatform","inLanguage":"en-GB","publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"}}]},"og:locale":"en_GB","og:site_name":"Love Linux | enjoy using linux for programming flatform","og:type":"article","og:title":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","og:description":"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react('resources\/assets\/js\/app.js', 'public\/js') .sass('resources\/assets\/sass\/app.scss', 'public\/css') .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01","og:url":"https:\/\/lovelinux.mydns.jp\/?p=1850","article:published_time":"2019-01-03T13:46:34+00:00","article:modified_time":"2019-01-03T13:46:34+00:00","twitter:card":"summary_large_image","twitter:title":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","twitter:description":"Laravel\u3068React\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u305f\u306f\u3044\u3044\u304c\u3001\u3044\u3056\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u5468\u308a\u306e\u8abf\u6574\u3092\u304b\u3051\u3066\u3082\u3001\u306a\u304b\u306a\u304b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u5909\u66f4\u304c\u6709\u52b9\u306b\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3002 \u3053\u308c\u306f\u5f53\u305f\u308a\u524d\u306e\u8a71\u3067\u3001Laravel\u5185\u304b\u3089 \u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306eapp.css\u3068app.js\u3092\u304f\u3060\u3055\u3044\u3068\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\u3002 \u3053\u308c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u3054\u3068\u306b\u624b\u52d5\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u518d\u8aad\u8fbc\u3055\u305b\u308b\u65b9\u6cd5\u3082\u306a\u3044\u3067\u306f\u306a\u3044\u304c\u3001\u30b9\u30de\u30fc\u30c8\u3067\u306f\u306a\u3044\u3002 \u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\u3002 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b Laravel Mix\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\uff08\u672b\u5c3e3\u884c\uff09 webpack.mix.js\u3092\u7de8\u96c6 webpack.mix.js [bash] mix.react('resources\/assets\/js\/app.js', 'public\/js') .sass('resources\/assets\/sass\/app.scss', 'public\/css') .sourceMaps(); + if (mix.inProduction()) { + mix.version(); + } [\/bash] \u30eb\u30fc\u30c8\u306b\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6 React\u306e\u30eb\u30fc\u30c8\u3068\u306a\u308bblade\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u3002 app.css\u306e\u884c\u3068\u3001app.js\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 [bash] - + - + [\/bash] \u52d5\u4f5c\u691c\u8a3c \u30ea\u30ea\u30fc\u30b9\u4f5c\u696d\u3092\u3057\u3066\u307f\u3066\u3001Chrome\u3067\u8aad\u307f\u8fbc\u3093\u3067\u307f\u3066\u3001app.js\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6210\u529f\uff01"},"aioseo_meta_data":{"post_id":"1850","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-08-22 21:17:58","updated":"2025-08-25 11:30:09","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=2\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=77\" title=\"React\">React<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tLaravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/lovelinux.mydns.jp"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/lovelinux.mydns.jp\/?cat=2"},{"label":"React","link":"https:\/\/lovelinux.mydns.jp\/?cat=77"},{"label":"Laravel \u3068 React\u3067 Laravel Mix\u3092\u4f7f\u3044app.css\u3068app.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u6709\u52b9\u306b\u3059\u308b","link":"https:\/\/lovelinux.mydns.jp\/?p=1850"}],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1850"}],"version-history":[{"count":3,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1850\/revisions"}],"predecessor-version":[{"id":1855,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1850\/revisions\/1855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/1851"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}