This commit is contained in:
toby 2018-09-05 21:56:02 +10:00
parent 0aa7a822a7
commit d5efe6c2d1
2 changed files with 30 additions and 0 deletions

View File

@ -12,6 +12,12 @@ Object {
"r2",
],
},
"optimization": Object {
"runtimeChunk": true,
"splitChunks": Object {
"chunks": "all",
},
},
"output": Object {
"filename": "[name].js",
},
@ -48,6 +54,12 @@ Object {
"r2",
],
},
"optimization": Object {
"runtimeChunk": true,
"splitChunks": Object {
"chunks": "all",
},
},
"output": Object {
"filename": "[name].js",
},
@ -84,6 +96,15 @@ Object {
"r4",
],
},
"optimization": Object {
"minimizer": Array [
"banana",
],
"runtimeChunk": true,
"splitChunks": Object {
"chunks": "all",
},
},
"output": Object {
"filename": "[name].js",
},

View File

@ -20,6 +20,12 @@ const config = {
A2: 'src/B2',
},
},
optimization: {
splitChunks: {
chunks: 'all',
},
runtimeChunk: true,
},
};
describe('mergeConfigs', () => {
@ -45,6 +51,9 @@ describe('mergeConfigs', () => {
A4: 'src/B4',
},
},
optimization: {
minimizer: ['banana'],
},
};
const result = mergeConfigs(config, customConfig);