Skip to content

larkinwhitaker/laravel-elixir-uglify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elixir-uglify

Installation


$ npm install elixir-uglify

Usage


Require the extension and call it using mix.uglify(). It will output a new file with the extension '.min.js' as well as source maps.

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

elixir(function(mix)
{
	mix.scriptsIn("public/js")
		.uglify(
			"public/js/all.js", 		// File to uglify
			"public/js/"				// Output path
		);	
});

Run gulp.

$ gulp

About

Laravel Elixir uglify task to minify JS files with source mapping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published