Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 886 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 886 Bytes

Deprecated, Please use mix.script official plugin.

laravel-elixir-uglify

uglify wrapper for laravel elixir

Installation

npm install laravel-elixir-uglify --save-dev

Usage

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

Default

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