Skip to content

panudetjt/laravel-elixir-uglify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

uglify wrapper for laravel elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published