client: convert more components to Functional Component

This commit is contained in:
Jesse Chan
2020-11-13 21:40:31 +08:00
parent 3380c701e2
commit e6181ef2c9
69 changed files with 1631 additions and 1452 deletions
+9 -1
View File
@@ -68,7 +68,15 @@ measureFileSizesBeforeBuild(paths.appBuild)
})
.then(
({stats, previousFileSizes}) => {
if (stats.compilation.warnings.length !== 0) {
if (stats.hasErrors()) {
stats.compilation.errors.forEach((err) => {
console.error(err);
});
process.exit(1);
}
if (stats.hasWarnings()) {
console.log(chalk.yellow('Compiled with warnings.\n'));
stats.compilation.warnings.forEach((warning) => {