Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -144,6 +144,12 @@ export default ({ command, mode }) => { | ... | @@ -144,6 +144,12 @@ export default ({ command, mode }) => { |
| 144 | main: path.resolve(__dirname, 'index.html'), | 144 | main: path.resolve(__dirname, 'index.html'), |
| 145 | // mono1: path.resolve(__dirname, 'src/packages/mono1/index.html'), | 145 | // mono1: path.resolve(__dirname, 'src/packages/mono1/index.html'), |
| 146 | // mono2: path.resolve(__dirname, 'src/packages/mono2/index.html'), | 146 | // mono2: path.resolve(__dirname, 'src/packages/mono2/index.html'), |
| 147 | + }, | ||
| 148 | + manualChunks (id) { | ||
| 149 | + if (id.includes('node_modules')) { | ||
| 150 | + return id.toString().split('node_modules/')[1].split('/')[0].toString(); | ||
| 151 | + // return 'vendor'; | ||
| 152 | + } | ||
| 147 | } | 153 | } |
| 148 | }, | 154 | }, |
| 149 | }, | 155 | }, | ... | ... |
-
Please register or login to post a comment