You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					15 lines
				
				306 B
			
		
		
			
		
	
	
					15 lines
				
				306 B
			| 
								 
											3 years ago
										 
									 | 
							
								#!/bin/sh
							 | 
						||
| 
								 | 
							
								set -ex
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								mkdir -p dist
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								yarn browserify lib/index.js \
							 | 
						||
| 
								 | 
							
								  --insert-global-vars 'global' \
							 | 
						||
| 
								 | 
							
								  --plugin bundle-collapser/plugin \
							 | 
						||
| 
								 | 
							
								  --plugin derequire/plugin \
							 | 
						||
| 
								 | 
							
								  >dist/polyfill.js
							 | 
						||
| 
								 | 
							
								yarn uglifyjs dist/polyfill.js \
							 | 
						||
| 
								 | 
							
								  --compress keep_fnames,keep_fargs \
							 | 
						||
| 
								 | 
							
								  --mangle keep_fnames \
							 | 
						||
| 
								 | 
							
								  >dist/polyfill.min.js
							 |