stats.report/json is being written to .embark/ not dist/

This commit is contained in:
Michael Bradley, Jr 2018-07-20 11:42:58 -05:00
parent 78332d40da
commit 65427aed58

View File

@ -149,7 +149,7 @@ class WebpackProcess extends ProcessWrapper {
}, },
function writeStatsReport(next) { function writeStatsReport(next) {
if (detectErrors) { if (detectErrors) {
self._log('info', 'writing file '+ ('dist/stats.report').bold.dim); self._log('info', 'writing file '+ ('.embark/stats.report').bold.dim);
} }
fs.writeFile( fs.writeFile(
path.join(fs.dappPath('.embark'), 'stats.report'), path.join(fs.dappPath('.embark'), 'stats.report'),
@ -159,7 +159,7 @@ class WebpackProcess extends ProcessWrapper {
}, },
function writeStatsJSON(next) { function writeStatsJSON(next) {
if (detectErrors) { if (detectErrors) {
self._log('info','writing file '+ ('dist/stats.json').bold.dim); self._log('info','writing file '+ ('.embark/stats.json').bold.dim);
} }
fs.writeFile( fs.writeFile(
path.join(fs.dappPath('.embark'), 'stats.json'), path.join(fs.dappPath('.embark'), 'stats.json'),