| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  | module.exports = (ctx) => ({ | 
					
						
							|  |  |  |   map: ctx.file.dirname.startsWith('docs') ? false : { | 
					
						
							|  |  |  |     inline: false, | 
					
						
							|  |  |  |     annotation: true, | 
					
						
							|  |  |  |     sourcesContent: true | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   plugins: { | 
					
						
							|  |  |  |     autoprefixer: { | 
					
						
							|  |  |  |       browsers: [ | 
					
						
							|  |  |  |         //
 | 
					
						
							|  |  |  |         // Official browser support policy:
 | 
					
						
							| 
									
										
										
										
											2017-08-27 14:46:32 +08:00
										 |  |  |         // https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/#supported-browsers
 | 
					
						
							| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  |         //
 | 
					
						
							| 
									
										
										
										
											2017-06-30 12:00:57 +08:00
										 |  |  |         'Chrome >= 45', // Exact version number here is kinda arbitrary
 | 
					
						
							|  |  |  |         'Firefox ESR', | 
					
						
							| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  |         // Note: Edge versions in Autoprefixer & Can I Use refer to the EdgeHTML rendering engine version,
 | 
					
						
							|  |  |  |         // NOT the Edge app version shown in Edge's "About" screen.
 | 
					
						
							|  |  |  |         // For example, at the time of writing, Edge 20 on an up-to-date system uses EdgeHTML 12.
 | 
					
						
							|  |  |  |         // See also https://github.com/Fyrd/caniuse/issues/1928
 | 
					
						
							|  |  |  |         'Edge >= 12', | 
					
						
							|  |  |  |         'Explorer >= 10', | 
					
						
							|  |  |  |         // Out of leniency, we prefix these 1 version further back than the official policy.
 | 
					
						
							| 
									
										
										
										
											2017-06-30 13:49:56 +08:00
										 |  |  |         'iOS >= 9', | 
					
						
							| 
									
										
										
										
											2017-06-30 12:00:57 +08:00
										 |  |  |         'Safari >= 9', | 
					
						
							| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  |         // The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them.
 | 
					
						
							| 
									
										
										
										
											2017-06-30 12:00:57 +08:00
										 |  |  |         'Android >= 4.4', | 
					
						
							| 
									
										
										
										
											2017-06-30 13:49:56 +08:00
										 |  |  |         'Opera >= 30' | 
					
						
							| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  |       ] | 
					
						
							| 
									
										
										
										
											2017-06-18 16:33:26 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-03-12 11:32:50 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | }) |