2020-03-02 22:53:18 +01:00
|
|
|
module.exports = {
|
|
|
|
experimental: {
|
|
|
|
conformance: true,
|
|
|
|
},
|
2020-05-20 08:40:23 +02:00
|
|
|
webpack(cfg, { dev, isServer }) {
|
|
|
|
if (!dev && !isServer) {
|
|
|
|
cfg.optimization.splitChunks.cacheGroups.vendors = {
|
|
|
|
chunks: 'initial',
|
|
|
|
name: 'vendor',
|
|
|
|
test: 'vendor',
|
|
|
|
enforce: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return cfg
|
|
|
|
},
|
2020-03-02 22:53:18 +01:00
|
|
|
}
|