forked from sheetjs/docs.sheetjs.com
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			326 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | module.exports = { | ||
|  |   webpack: (config) => { | ||
|  |     /* add to the webpack config module.rules array */ | ||
|  |     config.module.rules.push({ | ||
|  |       /* `test` matches file extensions */ | ||
|  |       test: /\.(numbers|xls|xlsx|xlsb)/, | ||
|  |       /* use the loader script */ | ||
|  |       use: [ { loader: './base64-loader' } ] | ||
|  |     }); | ||
|  |     return config; | ||
|  |   } | ||
|  | }; |