bin/compile.js
function bundleJsFiles () {
  return concat(jsFiles)
    .then((output) => {
      const uglified = UglifyJS.minify(output)
      if (uglified.error) {
        throw new Error(uglified.error)
      }
      return uglified.code
    })
}
function bundleJsFiles () {
  return concat(jsFiles)
    .then((output) => {
      const uglified = UglifyJS.minify(output)
      if (uglified.error) {
        throw new Error(uglified.error)
      }
      return uglified.code
    })
}
function bundleJsFiles ( ) { return concat ( jsFiles ) . then ( ( output ) => { const uglified = UglifyJS . minify ( output ) if ( uglified . error ) { throw new Error ( uglified . error ) } return uglified . code } ) }
Bundling js files by concatenating them and then
uglifying them.

@method bundleJsFiles

@return {Promise<String>}
Bundling js files by concatenating them and then uglifying them .