# Disabling debug mode when building production : Vue 2

**URL:** https://discourse.roots.io/t/disabling-debug-mode-when-building-production-vue-2/19471
**Category:** sage
**Tags:** sage9
**Created:** 2020-11-08T04:47:55Z
**Posts:** 1

## Post 1 by @Bhanu_Kumar_Singh — 2020-11-08T04:47:55Z

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

> [@Adding Vue.js to Sage 9: Dependencies and Approach](https://discourse.roots.io/t/adding-vue-js-to-sage-9-dependencies-and-approach/9644/11):
>
> Updated instructions for buble instead of babel, with vue-style-loader working The previous solution above was missing vue-style-loader integration, and this one fixes that problem, permitting \<style\> sections in .vue single-file components. Thanks to @kellymears for having published [https://github.com/pixelcollective/SageJS](https://github.com/pixelcollective/SageJS), which includes these fixes. Known issue: In the final main.css, the styles from .vue components are included before the normal scss styles. Now sure how to fix that yet. …

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!!

---

## Post 2 by @system — 2020-12-20T04:48:00Z

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