mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 10:35:59 +00:00
client: convert more components to Functional Component
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user