mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	feat: 静态资源分类打包
This commit is contained in:
		
							parent
							
								
									4a7d5d6573
								
							
						
					
					
						commit
						aa83ea83fa
					
				@ -69,7 +69,18 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
 | 
				
			|||||||
    build: {
 | 
					    build: {
 | 
				
			||||||
      sourcemap: false,
 | 
					      sourcemap: false,
 | 
				
			||||||
      // 消除打包大小超过500kb警告
 | 
					      // 消除打包大小超过500kb警告
 | 
				
			||||||
      chunkSizeWarningLimit: 4000
 | 
					      chunkSizeWarningLimit: 4000,
 | 
				
			||||||
 | 
					      rollupOptions: {
 | 
				
			||||||
 | 
					        input: {
 | 
				
			||||||
 | 
					          index: pathResolve("index.html")
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        // 静态资源分类打包
 | 
				
			||||||
 | 
					        output: {
 | 
				
			||||||
 | 
					          chunkFileNames: "static/js/[name]-[hash].js",
 | 
				
			||||||
 | 
					          entryFileNames: "static/js/[name]-[hash].js",
 | 
				
			||||||
 | 
					          assetFileNames: "static/[ext]/[name]-[hash].[ext]"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    define: {
 | 
					    define: {
 | 
				
			||||||
      __INTLIFY_PROD_DEVTOOLS__: false,
 | 
					      __INTLIFY_PROD_DEVTOOLS__: false,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user