mirror of https://github.com/embarklabs/embark.git
disable stats gen (should be activated via cfg file and/or cli opts)
This commit is contained in:
parent
f4b00e6bbf
commit
bade3a4c9f
|
@ -51,8 +51,9 @@ class WebpackProcess extends ProcessWrapper {
|
|||
filename: filename,
|
||||
umdNamedDefine: true
|
||||
},
|
||||
profile: true,
|
||||
stats: 'verbose',
|
||||
// profile: true,
|
||||
// stats: 'verbose',
|
||||
// note: generating and writing to disk verbose stats increases build time
|
||||
resolve: {
|
||||
alias: importsList,
|
||||
modules: [
|
||||
|
@ -63,7 +64,7 @@ class WebpackProcess extends ProcessWrapper {
|
|||
plugins: [
|
||||
new HardSourceWebpackPlugin({
|
||||
cacheDirectory: fs.dappPath('node_modules/.cache/hard-source'),
|
||||
// ufglify would still save its cache in embark's node_modules/.cache/
|
||||
// ufglify (wp mode: production) will still save its cache in embark's node_modules/.cache/
|
||||
environmentHash: {
|
||||
root: fs.dappPath()
|
||||
}
|
||||
|
@ -147,27 +148,27 @@ class WebpackProcess extends ProcessWrapper {
|
|||
);
|
||||
}
|
||||
next();
|
||||
},
|
||||
function writeStatsReport(next) {
|
||||
if (detectErrors) {
|
||||
self._log('info', 'writing file '+ ('.embark/stats.report').bold.dim);
|
||||
}
|
||||
fs.writeFile(
|
||||
path.join(fs.dappPath('.embark'), 'stats.report'),
|
||||
stats.toString(webpackOptions.stats),
|
||||
next
|
||||
);
|
||||
},
|
||||
function writeStatsJSON(next) {
|
||||
if (detectErrors) {
|
||||
self._log('info','writing file '+ ('.embark/stats.json').bold.dim);
|
||||
}
|
||||
fs.writeFile(
|
||||
path.join(fs.dappPath('.embark'), 'stats.json'),
|
||||
JSON.stringify(stats.toJson(webpackOptions.stats)),
|
||||
next
|
||||
);
|
||||
}
|
||||
}//,
|
||||
// function writeStatsReport(next) {
|
||||
// if (detectErrors) {
|
||||
// self._log('info', 'writing file '+ ('.embark/stats.report').bold.dim);
|
||||
// }
|
||||
// fs.writeFile(
|
||||
// path.join(fs.dappPath('.embark'), 'stats.report'),
|
||||
// stats.toString(webpackOptions.stats),
|
||||
// next
|
||||
// );
|
||||
// },
|
||||
// function writeStatsJSON(next) {
|
||||
// if (detectErrors) {
|
||||
// self._log('info','writing file '+ ('.embark/stats.json').bold.dim);
|
||||
// }
|
||||
// fs.writeFile(
|
||||
// path.join(fs.dappPath('.embark'), 'stats.json'),
|
||||
// JSON.stringify(stats.toJson(webpackOptions.stats)),
|
||||
// next
|
||||
// );
|
||||
// }
|
||||
], (err) => {
|
||||
callback(err);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue