code: function filterGlobs(context, globs) {
  	const assetGlobs = [];
  	let cachedFiles = [];
  
  	globs.forEach(pattern => {
  		const file = isPathInside(absolutePath(pattern), context);
  
  		if (file) {
  			const files = glob.sync(pattern.replace(path.sep, '/'));
  
  			if (files.length > 0) {
  				cachedFiles = cachedFiles.concat(files);
  			} else {
  				// add pattern anyway if files doesn't exist
  				assetGlobs.push(pattern);
  			}
  		} else {
  			assetGlobs.push(pattern);
  		}
  	});
  
  	return {assetGlobs, cachedFiles};
  }
docs: DISCLAIMER: it can't make a right judge as patttern isn't starting without any hierarchical characaters like '/' or './'. For examples, ['*.js', '*.html'], in that case, we couldn't choice the location between file or root path on web server that result in gathering all files of both