Disabling debug mode when building production : Vue 2

I have setup vue in my project using the following answer:

Vue is working perfectly fine but I am interested in disabling vue devtools (debug mode) when use a production build.

I found this at some place but I am not very sure about how to webpack.

if (process.env.MIX_APP_ENV === 'production') {
    Vue.config.devtools = false;
    Vue.config.debug = false;
    Vue.config.silent = true; 

This probably is a laravel Mix file. How can I do these in sage ?

Thanks in advance!!

This topic was automatically closed after 42 days. New replies are no longer allowed.