function bundle (ids = []) {
      ids.forEach((id) => {
        if (!muted.has(id)) {
          console.info(chalk.cyan('change:'), path.relative(process.cwd(), id))
          muted.add(id)
        }
      })

      const exampleName = path.basename(path.dirname(file))
      const output = dstPattern.replace('**', exampleName)
      const parentDir = path.dirname(output)

      mkdirp.sync(parentDir)

      console.info(chalk.grey(`⏳ building: ${path.relative(process.cwd(), file)}`))

      b
        .bundle()
        .on('error', onError)
        .pipe(createStream(output))
        .on('finish', () => {
          console.info(chalk.green(`✓ built: ${path.relative(process.cwd(), file)}`))
        })
    }
function bundle (ids = []) {
      ids.forEach((id) => {
        if (!muted.has(id)) {
          console.info(chalk.cyan('change:'), path.relative(process.cwd(), id))
          muted.add(id)
        }
      })

      const exampleName = path.basename(path.dirname(file))
      const output = dstPattern.replace('**', exampleName)
      const parentDir = path.dirname(output)

      mkdirp.sync(parentDir)

      console.info(chalk.grey(`⏳ building: ${path.relative(process.cwd(), file)}`))

      b
        .bundle()
        .on('error', onError)
        .pipe(createStream(output))
        .on('finish', () => {
          console.info(chalk.green(`✓ built: ${path.relative(process.cwd(), file)}`))
        })
    }
function bundle ( ids = [ ] ) { ids . forEach ( ( id ) => { if ( ! muted . has ( id ) ) { console . info ( chalk . cyan ( 'change:' ) , path . relative ( process . cwd ( ) , id ) ) muted . add ( id ) } } ) const exampleName = path . basename ( path . dirname ( file ) ) const output = dstPattern . replace ( '**' , exampleName ) const parentDir = path . dirname ( output ) mkdirp . sync ( parentDir ) console . info ( chalk . grey ( ` pa th.r e lative(p r ocess.c w d() , f le)} ` ) ) b . bundle ( ) . on ( 'error' , onError ) . pipe ( createStream ( output ) ) . on ( 'finish' , ( ) => { console . info ( chalk . green ( ` pa th.r e lative(p r ocess.c w d() , f le)} ` ) ) } ) }
Creates bundle and writes it to static and public folders.
Changes to
@param  {[type]} ids [description]
@return {[type]}     [description]
Creates bundle and writes it to static and public folders . Changes to
Bundle a file