function writeBundle( bundle, isMinified ) {
		var fpath;
		if ( isMinified ) {
			fpath = join( outDir, b.name+'.min.js' );
			debug( 'Writing minified bundle to file: %s', fpath );
			return writeFile( fpath, bundle, onWriteMinify );
		}
		fpath = join( outDir, b.name+'.js' );
		debug( 'Writing bundle to file: %s', fpath );
		writeFile( fpath, bundle, onWrite );
	}
Writes a bundle to file.

@private
@param {(string|Buffer)} bundle - bundle to write to file
@param {boolean} isMinified - boolean indicating whether a bundle is minified
@returns {void}