-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcraco.config.js
More file actions
34 lines (34 loc) · 884 Bytes
/
craco.config.js
File metadata and controls
34 lines (34 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
webpack: {
configure: {
optimization: {
splitChunks: {
cacheGroups: {
'vendor-material-ui': {
name: 'vendor-material-ui',
test: /[\\/]node_modules[\\/]@material-ui[\\/]/,
chunks: 'initial',
priority: 2,
},
'vendor-react': {
name: 'vendor-sr-rcl',
test: /[\\/]node_modules[\\/]@texttree\/scripture-resources-rcl[\\/]/,
chunks: 'initial',
priority: 3,
},
'vendor-all': {
name: 'vendor-all',
test: /[\\/]node_modules[\\/]/,
chunks: 'initial',
priority: 1,
},
},
maxSize: 7000000,
},
runtimeChunk: {
name: 'manifest',
},
},
},
},
};