Commit 8ab90659 authored by Mike Greiling's avatar Mike Greiling

Ensure the build fails on DLL error

parent e6927403
...@@ -336,13 +336,16 @@ module.exports = { ...@@ -336,13 +336,16 @@ module.exports = {
if (stats.hasErrors()) { if (stats.hasErrors()) {
console.error(info.errors.join('\n\n')); console.error(info.errors.join('\n\n'));
return callback('DLL not compiled successfully.');
} }
if (stats.hasWarnings()) { if (stats.hasWarnings()) {
console.warn(info.warnings.join('\n\n')); console.warn(info.warnings.join('\n\n'));
console.warn('DLL compiled with warnings.');
} else {
console.log('DLL compiled successfully.');
} }
console.log('DLL compiled successfully.');
dll.exists = true; dll.exists = true;
callback(); callback();
}); });
......
...@@ -15,6 +15,9 @@ module.exports = { ...@@ -15,6 +15,9 @@ module.exports = {
extensions: ['.js'], extensions: ['.js'],
}, },
// ensure output is not generated when errors are encountered
bail: true,
context: ROOT_PATH, context: ROOT_PATH,
entry: { entry: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment