- Leverage webpack chunk splitting to creating more, smaller JS files rather than one large main file (import(file) syntax) - Enable long-term caching by adding content hash to output file names - Copy entire /dist folder contents in Dockerfile - Changed yarn start-dev -> yarn start since there is no prod server - Reenable locale picker
		
			
				
	
	
		
			18 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const { merge } = require("webpack-merge");
 | |
| 
 | |
| const common = require("./webpack.config.js");
 | |
| 
 | |
| module.exports = merge(common, {
 | |
|   mode: "production",
 | |
|   devtool: "source-map",
 | |
| 
 | |
|   // TODO figure out minifying lit templates
 | |
|   optimization: {
 | |
|     runtimeChunk: "single",
 | |
|     splitChunks: {
 | |
|       // Split both async and non-async chunks (only async by default)
 | |
|       chunks: "all",
 | |
|     },
 | |
|   },
 | |
| });
 |