I'm using the latest version of laravel mix but i can't fin anywhere in the doc how to now in the js if we are in the production env or dev env. In webpack normally we have access to a process.env.NODE_ENV or something but here it doesn't seem to work, at least in dev mode
When you run npm run production, it'll automatically strip out the Vue warnings and such.
to be specific i still see the "vue" tab in my console on production
@darkylmnx Perhaps this can help you out: https://stackoverflow.com/a/41627264
@riesjart i'm already loading the good vue file via
.webpackConfig({
resolve: {
alias: {
'vue$': 'vue/dist/vue.runtime.js'
}
}
})
Most helpful comment
@riesjart i'm already loading the good vue file via