{"id":820,"date":"2019-08-29T11:20:38","date_gmt":"2019-08-29T02:20:38","guid":{"rendered":"https:\/\/www.jaga.biz\/?p=820"},"modified":"2019-08-29T11:28:07","modified_gmt":"2019-08-29T02:28:07","slug":"vue-production-mode-2","status":"publish","type":"post","link":"https:\/\/www.jaga.biz\/en\/laravel\/vue-production-mode-2\/","title":{"rendered":"Set Vue.js to production mode with Laravel"},"content":{"rendered":"\n<p>When using Vue.js with Laravel, the following may be displayed on the browser console.<\/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=\"\">You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https:\/\/vuejs.org\/guide\/deployment.html<\/pre>\n\n\n\n<p>How to get into product mode, just run the following command in the top directory of the app. It may take some time depending on the environment.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">npm run production<\/pre>\n\n\n\n<p>When this command is executed, JS and CSS are output in a compact state, and the above warning message is not displayed.<\/p>\n<p>To return to the original state, do as follows.<\/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 run dev<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When using Vue.js with Laravel, the following may be displayed on the browser console. How to get into product\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.jaga.biz\/en\/laravel\/vue-production-mode-2\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"en_US","_original_post":"811","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-820","post","type-post","status-publish","format-standard","hentry","category-laravel","en-US"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/posts\/820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/comments?post=820"}],"version-history":[{"count":2,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/posts\/820\/revisions"}],"predecessor-version":[{"id":822,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/posts\/820\/revisions\/822"}],"wp:attachment":[{"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/media?parent=820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/categories?post=820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaga.biz\/wp-json\/wp\/v2\/tags?post=820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}