| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | # example.js
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` javascript | 
					
						
							|  |  |  | {{example.js}} | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # file.js
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` javascript | 
					
						
							|  |  |  | {{file.js}} | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # loader.js
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` javascript | 
					
						
							|  |  |  | {{loader.js}} | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-07 18:44:12 +08:00
										 |  |  | # test.css
 | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-14 19:03:24 +08:00
										 |  |  | ``` css | 
					
						
							| 
									
										
										
										
											2016-12-07 18:44:12 +08:00
										 |  |  | {{test.css}} | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-05 04:39:29 +08:00
										 |  |  | # dist/output.js
 | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` javascript | 
					
						
							| 
									
										
										
										
											2018-01-05 04:39:29 +08:00
										 |  |  | {{dist/output.js}} | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Console output
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-24 09:25:25 +08:00
										 |  |  | Prints in node.js (`enhanced-require example.js`) and in browser: | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | { answer: 42, foo: 'bar' } | 
					
						
							|  |  |  | { foobar: 1234 } | 
					
						
							|  |  |  | { foobar: 1234 } | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Info
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-14 17:09:09 +08:00
										 |  |  | ## Unoptimized
 | 
					
						
							| 
									
										
										
										
											2012-04-05 20:59:01 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | {{stdout}} | 
					
						
							| 
									
										
										
										
											2013-12-16 06:30:25 +08:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-14 17:09:09 +08:00
										 |  |  | ## Production mode
 | 
					
						
							| 
									
										
										
										
											2013-12-16 06:30:25 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2017-12-14 17:09:09 +08:00
										 |  |  | {{production:stdout}} | 
					
						
							| 
									
										
										
										
											2013-12-16 06:30:25 +08:00
										 |  |  | ``` |