evographics
297
2
Mix

Running gulp --production does not remove vue debug messages

Posted 3 years ago by evographics

I run gulp --production it builds and minifies my file but the vue lib remains the dev one and in my console the debug messages about vue are printed.

Checking the vue js documentation I found this http://vuejs.org/guide/application.html#Browserify and it suggests

NODE_ENV=production browserify -e main.js | uglifyjs -c -m > build.js

"Vue automatically applies envify transform to itself and makes warning blocks unreachable"

var elixir = require('laravel-elixir');
require('laravel-elixir-vueify');

elixir(function(mix) {
   mix.browserify('app.js');
});

How can achive the goal to use the production version vue js with laravel-elixir?

Thank you in advance!

Please sign in or create an account to participate in this conversation.