File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed
Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,12 @@ Object.assign(webpackConfig.output, {
3636
3737webpackConfig . optimization . chunkIds = 'named'
3838webpackConfig . optimization . splitChunks . cacheGroups = {
39- defaultVendors : {
40- test ( module ) {
41- return module . resource && module . resource . includes ( `${ path . sep } node_modules${ path . sep } ` ) &&
42- ! module . resource . includes ( `${ path . sep } highlight.js${ path . sep } ` )
43- } ,
44- name : 'vendors' ,
45- }
39+ mermaid : {
40+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] ( m e r m a i d ) [ \\ / ] / ,
41+ name : 'mermaid' ,
42+ } ,
4643}
44+ webpackConfig . optimization . splitChunks . minSize = 102400
4745
4846// Fix Buffer issues
4947webpackConfig . plugins . push ( new webpack . ProvidePlugin ( {
@@ -62,15 +60,4 @@ webpackRules.RULE_RAW_SVGS = {
6260
6361webpackConfig . module . rules = Object . values ( webpackRules )
6462
65- webpackConfig . optimization . splitChunks . minSize = 102400
66-
67- webpackConfig . optimization . splitChunks . cacheGroups = {
68- mermaid : {
69- test ( module ) {
70- return module . resource && module . resource . includes ( `${ path . sep } node_modules${ path . sep } mermaid` )
71- } ,
72- name : 'mermaid' ,
73- } ,
74- }
75-
7663module . exports = webpackConfig
You can’t perform that action at this time.
0 commit comments