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

EventFellows's avatar

Disable Vue.config.debug in Spark on gulp --production or 'APP_ENV' = 'production'

I'd like to disable all vue devtools in production environment of spark. I run ``gulp --production` but all vue debugging info is still there. My question is: HOW do I remove it for production only?

It seems Vue.config.debug = true; is hardcoded in the vendor files here: vendor\laravel\spark\resources\assets\js\vue-bootstrap.js

Also there are two other configuration settings that seem to have some relevance (not sure what exactly the differences are so far)

Vue.config.devtools = false
Vue.config.silent = true

Where can I set these to overwrite the spark defaults without touching the vendor files (I don't want to break update-ability)?

0 likes
1 reply

Please or to participate in this conversation.