packages/optimizer/demo/simple/index.js
function collectInputFiles(pattern) {
  return new Promise((resolve, reject) => {
    glob(pattern, {root: SRC_DIR, nomount: true}, (err, files) => {
      if (err) {
        return reject(err);
      }
      resolve(files);
    });
  });
}
function collectInputFiles(pattern) {
  return new Promise((resolve, reject) => {
    glob(pattern, {root: SRC_DIR, nomount: true}, (err, files) => {
      if (err) {
        return reject(err);
      }
      resolve(files);
    });
  });
}
function collectInputFiles ( pattern ) { return new Promise ( ( resolve , reject ) => { glob ( pattern , { root : SRC_DIR , nomount : true } , ( err , files ) => { if ( err ) { return reject ( err ) ; } resolve ( files ) ; } ) ; } ) ; }
Collect all files in the src dir.
Collect all files in the src dir .