We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec034f commit 5ab629aCopy full SHA for 5ab629a
packages/app/scripts/build.js
@@ -127,12 +127,19 @@ function build(previousSizeMap) {
127
process.exit(1);
128
}
129
130
+ const info = stats.toJson();
131
+
132
if (stats.hasErrors()) {
133
console.error('Failed to create a production build. Reason:');
- console.error(stats.compilation.errors);
134
+ console.error(info.errors);
135
136
137
138
+ if (stats.hasWarnings()) {
139
+ console.warn('Warnings in Webpack build:');
140
+ console.warn(info.warnings);
141
+ }
142
143
console.log(chalk.green('Compiled successfully.'));
144
console.log();
145
0 commit comments