Anyone?
Remove vue devtools & messages on gulp --production (specifically in Spark)
How can I remove all the development infos that vue provides in a production environment (.env="production")? Maybe I am missing something very obvious here, but I have not managed to figure it out...
When running gulp --production the css and js files get minified correctly (eventhough they are not renamed to .min).
I assume that would be the right develpment step to also disable all Vue dev info in a production build.
These are the value that need to be set if I am not mistaken:
Vue.config.devtools = false
Vue.config.debug = false
Vue.config.silent = true
Where can I do that without touching the vendor files? There should also be someting out of the box in spark somewhere, right? Maybe I am missing something very obvious here...
You would do:
export NODE_ENV=production && gulp --production
Or, Elixir v6 will set the environment automatically when you run gulp --production.
Please or to participate in this conversation.