docs: function handleFile(file) {
  	if (argv.map && argv.output) {
  		return fs.readFile(file).then(content =>
  			pify(sourceMapResolve.resolveSourceMap)(content.toString(), file, fs.readFile)
  				.then(map => {
  					if (map) {
  						prepareMap(file, content, map);
  						log('add', file);
  						if (map.url) {
  							log('map', map.url);
  						} else {
  							log('mapInline', file);
  						}
  						return {
  							file: path.relative(path.dirname(argv.output), file),
  							content: removeMapURL(content),
  							map: map.map,
  						};
  					}
  					return null;
  				})
  				.catch(error => {
  					console.log(
  						chalk.bold.yellow(`The sourcemap ${error.path} referenced in ${file} cannot be read and will be ignored`)
  					);
  				})
  				.then(result => {
  					if (!result) {
  						log('add', file);
  						return {
  							file: path.relative(path.dirname(argv.output), file),
  							content: removeMapURL(content),
  							map: argv['map-embed'] ? {sourcesContent: [removeMapURL(content)]} : undefined,
  						};
  					}
  					return result;
  				})
  		);
  	}
  	return fs.readFile(file).then(content => {
  		log('add', file);
  		return {
  			file,
  			content: removeMapURL(content),
  		};
  	});
  }