tasks/guibundles.js
function uglyfile(prettyfile, sourcecode, options) {
		var mintarget = prettyfile.replace('.js', '.min.js');
		var maptarget = prettyfile.replace('.js', '.js.map');
		var uglycodes = uglify(options.max ? prettyfile : sourcecode);
		writefile(mintarget, uglycodes.code, options);
		if (options.map) {
			writefile(maptarget, uglycodes.map, options);
		}
	}
function uglyfile(prettyfile, sourcecode, options) {
		var mintarget = prettyfile.replace('.js', '.min.js');
		var maptarget = prettyfile.replace('.js', '.js.map');
		var uglycodes = uglify(options.max ? prettyfile : sourcecode);
		writefile(mintarget, uglycodes.code, options);
		if (options.map) {
			writefile(maptarget, uglycodes.map, options);
		}
	}
function uglyfile ( prettyfile , sourcecode , options ) { var mintarget = prettyfile . replace ( '.js' , '.min.js' ) ; var maptarget = prettyfile . replace ( '.js' , '.js.map' ) ; var uglycodes = uglify ( options . max ? prettyfile : sourcecode ) ; writefile ( mintarget , uglycodes . code , options ) ; if ( options . map ) { writefile ( maptarget , uglycodes . map , options ) ; } }
Write uglified file
@param {string} prettyfile
@param {object} options
Write uglified file