mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 01:21:49 +08:00
tests
This commit is contained in:
parent
0aa7a822a7
commit
d5efe6c2d1
@ -12,6 +12,12 @@ Object {
|
|||||||
"r2",
|
"r2",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"optimization": Object {
|
||||||
|
"runtimeChunk": true,
|
||||||
|
"splitChunks": Object {
|
||||||
|
"chunks": "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
"output": Object {
|
"output": Object {
|
||||||
"filename": "[name].js",
|
"filename": "[name].js",
|
||||||
},
|
},
|
||||||
@ -48,6 +54,12 @@ Object {
|
|||||||
"r2",
|
"r2",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"optimization": Object {
|
||||||
|
"runtimeChunk": true,
|
||||||
|
"splitChunks": Object {
|
||||||
|
"chunks": "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
"output": Object {
|
"output": Object {
|
||||||
"filename": "[name].js",
|
"filename": "[name].js",
|
||||||
},
|
},
|
||||||
@ -84,6 +96,15 @@ Object {
|
|||||||
"r4",
|
"r4",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"optimization": Object {
|
||||||
|
"minimizer": Array [
|
||||||
|
"banana",
|
||||||
|
],
|
||||||
|
"runtimeChunk": true,
|
||||||
|
"splitChunks": Object {
|
||||||
|
"chunks": "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
"output": Object {
|
"output": Object {
|
||||||
"filename": "[name].js",
|
"filename": "[name].js",
|
||||||
},
|
},
|
||||||
|
@ -20,6 +20,12 @@ const config = {
|
|||||||
A2: 'src/B2',
|
A2: 'src/B2',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
chunks: 'all',
|
||||||
|
},
|
||||||
|
runtimeChunk: true,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('mergeConfigs', () => {
|
describe('mergeConfigs', () => {
|
||||||
@ -45,6 +51,9 @@ describe('mergeConfigs', () => {
|
|||||||
A4: 'src/B4',
|
A4: 'src/B4',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
minimizer: ['banana'],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const result = mergeConfigs(config, customConfig);
|
const result = mergeConfigs(config, customConfig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user