Deprecated, Please use mix.script official plugin.
uglify wrapper for laravel elixir
npm install laravel-elixir-uglify --save-dev
var elixir = require('laravel-elixir');
require('laravel-elixir-uglify');
elixir(function(mix) {
mix.uglify();
});By default mix.uglify() is going to search every .js file in public/js then minify it and rename with .min.js extension
mix.uglify(['**/*.js', '!**/*.min.js'], 'public/js', {
mangle: true,
suffix: '.min.js'
});suffix
type: string|boolean
description: if suffix set to be false it will overwrite original file
If you want another options please see gulp-uglify
For license see LICENSE file