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 ceca44c commit bfb6ed1Copy full SHA for bfb6ed1
config/webpack.config.prod.js
@@ -17,6 +17,7 @@ var isInNodeModules = 'node_modules' ===
17
var relative = isInNodeModules ? '../../..' : '..';
18
19
module.exports = {
20
+ bail: true,
21
devtool: 'source-map',
22
entry: './src/index.js',
23
output: {
scripts/build.js
@@ -21,7 +21,8 @@ rimrafSync(relative + '/build');
webpack(config).run(function(err, stats) {
if (err) {
24
- console.error(err);
+ console.error('Failed to create a production build. Reason:');
25
+ console.error(err.message);
26
process.exit(1);
27
}
28
0 commit comments