mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Fail the build when webpack has bundling warnings (early prevention of issues like microsoft/monaco-editor#2691)
This commit is contained in:
@@ -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()
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user