function fixAssetManifest() {
  const filename = pp("build/asset-manifest.json");
  const manifest = JSON.parse(fs.readFileSync(filename, "utf8"));
  delete manifest["main.js.map"];
  delete manifest["main.css.map"];
  fs.writeFileSync(filename, JSON.stringify(manifest, null, 2));
  console.log("Fixed asset-manifest.json - done.");
}
/**
 * Remove *.map filenames from asset-manifest JSON
 */
Remove *.map filenames from asset-manifest JSON
Remove * . map filenames from asset - manifest JSON
function fixAssetManifest() {
  const filename = pp("build/asset-manifest.json");
  const manifest = JSON.parse(fs.readFileSync(filename, "utf8"));
  delete manifest["main.js.map"];
  delete manifest["main.css.map"];
  fs.writeFileSync(filename, JSON.stringify(manifest, null, 2));
  console.log("Fixed asset-manifest.json - done.");
}
function fixAssetManifest ( ) { const filename = pp ( "build/asset-manifest.json" ) ; const manifest = JSON . parse ( fs . readFileSync ( filename , "utf8" ) ) ; delete manifest [ "main.js.map" ] ; delete manifest [ "main.css.map" ] ; fs . writeFileSync ( filename , JSON . stringify ( manifest , null , 2 ) ) ; console . log ( "Fixed asset-manifest.json - done." ) ; }
Remove *.map filenames from asset-manifest JSON
Remove * . map filenames from asset - manifest JSON