diff --git a/src/viewer.js b/src/viewer.js index d8e6757f..dce34157 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -153,7 +153,7 @@ async function generateReport(bundleStats, opts) { }); const reportFilepath = path.resolve(bundleDir || process.cwd(), reportFilename); - writeToFs(fs, reportFilepath, reportHtml) + writeToFs(fs, reportFilepath, reportHtml); logger.info(`${bold('Webpack Bundle Analyzer')} saved report to ${bold(reportFilepath)}`); @@ -169,7 +169,7 @@ async function generateJSONReport(bundleStats, opts) { if (!chartData) return; - writeToFs(fs, reportFilename, JSON.stringify(chartData)) + writeToFs(fs, reportFilename, JSON.stringify(chartData)); logger.info(`${bold('Webpack Bundle Analyzer')} saved JSON report to ${bold(reportFilename)}`); }