I tried to add
optimization: {
splitChunks: {
cacheGroups: {
commons: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all'
}
}
}
},
To my webpack config file but when I compare the network when loading the pack in incognito, with and without that config, both are identical.
Also running a build yield the same output.
Is there another way to know for sure if it does something?
What I want to achieve is that each page on my site will have its own chunk, and only that will be loaded when that page is navigated to.