Configure webpacker `cache_manifest: true` in non-dev environments (#33832)
This commit is contained in:
		
							parent
							
								
									95caa8bc4e
								
							
						
					
					
						commit
						745391092c
					
				|  | @ -13,8 +13,8 @@ default: &default | ||||||
|   # ['app/assets', 'engine/foo/app/assets'] |   # ['app/assets', 'engine/foo/app/assets'] | ||||||
|   resolved_paths: [] |   resolved_paths: [] | ||||||
| 
 | 
 | ||||||
|   # Reload manifest.json on all requests so we reload latest compiled packs |   # Cache manifest.json for performance | ||||||
|   cache_manifest: false |   cache_manifest: true | ||||||
| 
 | 
 | ||||||
|   # Extract and emit a css file |   # Extract and emit a css file | ||||||
|   extract_css: true |   extract_css: true | ||||||
|  | @ -55,6 +55,9 @@ development: | ||||||
| 
 | 
 | ||||||
|   compile: true |   compile: true | ||||||
| 
 | 
 | ||||||
|  |   # Reload manifest in development environment so we pick up changes | ||||||
|  |   cache_manifest: false | ||||||
|  | 
 | ||||||
|   # Reference: https://webpack.js.org/configuration/dev-server/ |   # Reference: https://webpack.js.org/configuration/dev-server/ | ||||||
|   dev_server: |   dev_server: | ||||||
|     https: false |     https: false | ||||||
|  | @ -89,6 +92,3 @@ production: | ||||||
| 
 | 
 | ||||||
|   # Production depends on precompilation of packs prior to booting for performance. |   # Production depends on precompilation of packs prior to booting for performance. | ||||||
|   compile: false |   compile: false | ||||||
| 
 |  | ||||||
|   # Cache manifest.json for performance |  | ||||||
|   cache_manifest: true |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue