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,
|
filename: filename,
|
||||||
umdNamedDefine: true
|
umdNamedDefine: true
|
||||||
},
|
},
|
||||||
profile: true,
|
// profile: true,
|
||||||
stats: 'verbose',
|
// stats: 'verbose',
|
||||||
|
// note: generating and writing to disk verbose stats increases build time
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: importsList,
|
alias: importsList,
|
||||||
modules: [
|
modules: [
|
||||||
|
@ -63,7 +64,7 @@ class WebpackProcess extends ProcessWrapper {
|
||||||
plugins: [
|
plugins: [
|
||||||
new HardSourceWebpackPlugin({
|
new HardSourceWebpackPlugin({
|
||||||
cacheDirectory: fs.dappPath('node_modules/.cache/hard-source'),
|
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: {
|
environmentHash: {
|
||||||
root: fs.dappPath()
|
root: fs.dappPath()
|
||||||
}
|
}
|
||||||
|
@ -147,27 +148,27 @@ class WebpackProcess extends ProcessWrapper {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
},
|
}//,
|
||||||
function writeStatsReport(next) {
|
// function writeStatsReport(next) {
|
||||||
if (detectErrors) {
|
// if (detectErrors) {
|
||||||
self._log('info', 'writing file '+ ('.embark/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'),
|
||||||
stats.toString(webpackOptions.stats),
|
// stats.toString(webpackOptions.stats),
|
||||||
next
|
// next
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
function writeStatsJSON(next) {
|
// function writeStatsJSON(next) {
|
||||||
if (detectErrors) {
|
// if (detectErrors) {
|
||||||
self._log('info','writing file '+ ('.embark/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'),
|
||||||
JSON.stringify(stats.toJson(webpackOptions.stats)),
|
// JSON.stringify(stats.toJson(webpackOptions.stats)),
|
||||||
next
|
// next
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
], (err) => {
|
], (err) => {
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue