mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
题解功能
This commit is contained in:
1 parent
ec727d58aa
commit
41261f8c4b
20 files changed
+825
-1277
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user