Web: Login/Editor: fixed showing warnings about request as expression

This commit is contained in:
Artem Tarasov 2022-09-05 13:16:04 +03:00
parent a3f344712b
commit 65f1b61998
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,5 @@
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const scriptExtensions = /\.(tsx|ts|js|jsx|mjs)$/;
const imageExtensions = /\.(bmp|gif|jpg|jpeg|png)$/;
const fontsExtension = /\.(eot|otf|ttf|woff|woff2)$/;
@ -46,4 +48,10 @@ module.exports = {
},
],
},
plugins: [
//ignore the drivers you don't want. This is the complete list of all drivers -- remove the suppressions for drivers you want to use.
new FilterWarningsPlugin({
exclude: [/Critical dependency/],
}),
],
};

View File

@ -1,3 +1,5 @@
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const scriptExtensions = /\.(tsx|ts|js|jsx|mjs)$/;
const imageExtensions = /\.(bmp|gif|jpg|jpeg|png)$/;
const fontsExtension = /\.(eot|otf|ttf|woff|woff2)$/;
@ -56,4 +58,10 @@ module.exports = {
},
],
},
plugins: [
//ignore the drivers you don't want. This is the complete list of all drivers -- remove the suppressions for drivers you want to use.
new FilterWarningsPlugin({
exclude: [/Critical dependency/],
}),
],
};