题解功能

This commit is contained in:
masnn committed 2020-04-10 19:40:08 +08:00
1 parent ec727d58aa
commit 41261f8c4b
20 files changed
+825 -1277

No files matched your search

-3
View File
@@ -16,13 +16,10 @@ export default function ({ watch, production }) {
function compilerCallback(err, stats) {
if (err) {
// config errors
console.error(err.stack || err);
if (err.details) console.error(err.details);
process.exit(1);
return;
}
console.log(stats.toString(outputOptions));
fs.writeFileSync(root('./.webpackStats.json'), JSON.stringify(stats.toJson(), null, 2));
if (!watch && stats.hasErrors()) process.exitCode = 1;
}