[Vuejs]-How to disable devtools in inertiajs and Laravel 8ุŸ

0๐Ÿ‘

Do you mean Vueโ€™s devtools? If that so then I have two solution:

  1. set Vue.config.devtools as false before you declare your app:
import AppConfig from './app.vue';

Vue.config.devtools = false;
const App = new Vue(AppConfig);
  1. Do not use development version and use production version instead. For more information please see official Document.

Each one above can achive your goal.

0๐Ÿ‘

add this line

NODE_ENV=production

to .env file.

But why is it only applied in Firefox and Devtool are still visible in Chrome?

Leave a comment