Compare commits

...

1 Commits

Author SHA1 Message Date
Uladzimir Havenchyk
7fb60a8df7 use smaller chunks 2024-07-22 17:12:27 +03:00

View File

@@ -223,28 +223,7 @@ const config = (module.exports = {
optimization: {
runtimeChunk: "single",
splitChunks: {
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/](?!(sql-formatter|jspdf|html2canvas-pro)[\\/])/,
chunks: "all",
name: "vendor",
},
sqlFormatter: {
test: /[\\/]node_modules[\\/]sql-formatter[\\/]/,
chunks: "all",
name: "sql-formatter",
},
jspdf: {
test: /[\\/]node_modules[\\/]jspdf[\\/]/,
chunks: "all",
name: "jspdf",
},
html2canvas: {
test: /[\\/]node_modules[\\/]html2canvas-pro[\\/]/,
chunks: "all",
name: "html2canvas",
},
},
chunks: "all",
},
minimizer: [
new TerserPlugin({