example/tasks/minjs/index.js
function minjs(config, tools) {
  return tools.simpleStream(config, [
    config.concat && concat(config.concat),
    config.minify && uglify(config.uglifyjs)
  ])
}
function minjs(config, tools) {
  return tools.simpleStream(config, [
    config.concat && concat(config.concat),
    config.minify && uglify(config.uglifyjs)
  ])
}
function minjs ( config , tools ) { return tools . simpleStream ( config , [ config . concat && concat ( config . concat ) , config . minify && uglify ( config . uglifyjs ) ] ) }
Make a simple JS build, optionally concatenated and minified
@param {object} config - task configuration
@param {object} tools - gtm utility functions
@return {object}
Make a simple JS build optionally concatenated and minified