Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Demers94's avatar

Disable "You are running Vue in development mode" warning

Hi,

I'm using Vue in a fresh install of Laravel.

In the console in the browser, there's a message telling me that I'm running Vue in development mode with a link to the "how to deploy" page of the documentation.

Is there any way to disable this message?

0 likes
8 replies
DarkRoast's avatar

To compile your assets in production mode (e.g. minified js files etc) then you can use gulp --production - I think that should remove that warning.

1 like
XediDC's avatar

You can also disable the warning while still in dev if you prefer, with this command:

Vue.config.productionTip = false;
8 likes
raj015's avatar

i am a beginner and facing the same problem , i couldn't understand where exactly "Vue.config.productionTip = false;" need to be placed, can anyone please guide me with some elaborate explanation

topvillas's avatar

@raj015 - Wherever you're creating your Vue instance.

const Vue = require('vue');

Vue.config.productionTip = false;

var  app = new Vue({
});
3 likes
thepassenger's avatar

@raj015 Anywhere you define your app is fine. If you are using the laravel+vue I'd put it in the main app.js file or the resources/assets/js/bootstrap.js

2 likes

Please or to participate in this conversation.