lib/plugins/FileSystemPlugin.js
function readFileSync (args) {
    var file = args.file;
    var next = args.next;

    if (isUnsupportedPath(file.url)) {
      // It's not a filesystem path, so let some other plugin handle it
      return next();
    }

    var filepath = getFileSystemPath(file.url);

    inferFileMetadata(file);
    return fs.readFileSync(filepath);
  }
function readFileSync (args) {
    var file = args.file;
    var next = args.next;

    if (isUnsupportedPath(file.url)) {
      // It's not a filesystem path, so let some other plugin handle it
      return next();
    }

    var filepath = getFileSystemPath(file.url);

    inferFileMetadata(file);
    return fs.readFileSync(filepath);
  }
function readFileSync ( args ) { var file = args . file ; var next = args . next ; if ( isUnsupportedPath ( file . url ) ) { // It's not a filesystem path, so let some other plugin handle it return next ( ) ; } var filepath = getFileSystemPath ( file . url ) ; inferFileMetadata ( file ) ; return fs . readFileSync ( filepath ) ; }
Synchronously reads a file from the local filesystem.

@param {File} args.file - The {@link File} to read
@param {function} args.next - Calls the next plugin, if the file is not a local filesystem file
@returns {Buffer|undefined}
Synchronously reads a file from the local filesystem .