perf[Chore]: optimization.splitChunks adapt cnpm module name
							parent
							
								
									afb62edc58
								
							
						
					
					
						commit
						c833cb6efa
					
				|  | @ -26,7 +26,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { | ||||||
|   app.listen(port, function () { |   app.listen(port, function () { | ||||||
|     console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`)) |     console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`)) | ||||||
|     if (report) { |     if (report) { | ||||||
|       console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}/report.html`)) |       console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`)) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
|  | @ -114,7 +114,7 @@ module.exports = { | ||||||
|                 elementUI: { |                 elementUI: { | ||||||
|                   name: 'chunk-elementUI', // split elementUI into a single package
 |                   name: 'chunk-elementUI', // split elementUI into a single package
 | ||||||
|                   priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
 |                   priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
 | ||||||
|                   test: /[\\/]node_modules[\\/]element-ui[\\/]/ |                   test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
 | ||||||
|                 }, |                 }, | ||||||
|                 commons: { |                 commons: { | ||||||
|                   name: 'chunk-commons', |                   name: 'chunk-commons', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Pan
						Pan