Дополнены кофигурации webpack

This commit is contained in:
Александр Сироткин 2022-11-21 11:31:33 +05:00
parent de7e8fd259
commit 16fb37910f
2 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,13 @@ module.exports = {
context: ['/api', '/auth', '/hubs'], context: ['/api', '/auth', '/hubs'],
target: proxy, target: proxy,
}, },
client: {
overlay: {
errors: true,
warnings: false,
},
progress: true,
},
}, },
optimization: { optimization: {
splitChunks: { splitChunks: {

View File

@ -6,7 +6,7 @@ module.exports = {
mode: 'production', mode: 'production',
performance: { performance: {
assetFilter: (assetFilename) => !/\.map$/.test(assetFilename), assetFilter: (assetFilename) => !/\.map$/.test(assetFilename),
hints: 'error', hints: 'warning',
maxAssetSize: 300 * 1024, // 300KB maxAssetSize: 300 * 1024, // 300KB
}, },
cache: false, cache: false,