Fail the build when webpack has bundling warnings (early prevention of issues like microsoft/monaco-editor#2691)

This commit is contained in:
Alex Dima
2021-10-11 18:14:10 +02:00
parent c15218d09e
commit 898c759f85
3 changed files with 12 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
const path = require('path');
const WarningsToErrorsPlugin = require('warnings-to-errors-webpack-plugin');
module.exports = {
mode: 'production',
@@ -51,5 +52,8 @@ module.exports = {
moduleTrace: true,
errorDetails: true,
chunks: true
}
},
plugins: [
new WarningsToErrorsPlugin()
],
};