forked from MapComplete/MapComplete
		
	Service worker should update more aggressively now
This commit is contained in:
		
							parent
							
								
									7d0816219f
								
							
						
					
					
						commit
						47e23f7d8d
					
				
					 2 changed files with 23 additions and 12 deletions
				
			
		|  | @ -11,6 +11,8 @@ mkdir dist/assets 2> /dev/null | |||
| 
 | ||||
| 
 | ||||
| export NODE_OPTIONS="--max-old-space-size=16384" | ||||
| VERSION=$(cat package.json | grep '"version": ' | sed "s/^.*://" | tr -d " \",") | ||||
| sed "s/= \"0.0.0\"/= \"$VERSION\"/" -i public/service-worker.js | ||||
| 
 | ||||
| # This script ends every line with '&&' to chain everything. A failure will thus stop the build | ||||
| npm run download:editor-layer-index && | ||||
|  | @ -32,6 +34,7 @@ fi | |||
| BRANCH=`git rev-parse --abbrev-ref HEAD` | ||||
| echo "The branch name is $BRANCH" | ||||
| 
 | ||||
| 
 | ||||
| if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ] | ||||
| then | ||||
|     ASSET_URL="./" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue