index.js
function(manifest, compilation, props) {
    const outputFolder = compilation.options.output.path;
    const outputFile = path.join(outputFolder, props.fileName);

    fse.outputFileSync(outputFile, manifest);
  }
function(manifest, compilation, props) {
    const outputFolder = compilation.options.output.path;
    const outputFile = path.join(outputFolder, props.fileName);

    fse.outputFileSync(outputFile, manifest);
  }
function ( manifest , compilation , props ) { const outputFolder = compilation . options . output . path ; const outputFile = path . join ( outputFolder , props . fileName ) ; fse . outputFileSync ( outputFile , manifest ) ; }
Writes a JSON to Webpack output path. If the output directory doesn't
exists it will create it.

@param {JSON} manifest - The manifest containing files
@param {object} compilation - Object containing Webpack context
@param {object} props - Props passed to the plugin
@return {undefined}
Writes a JSON to Webpack output path . If the output directory doesn t exists it will create it .