forked from MapComplete/MapComplete
		
	Feature: enable source maps, see #1698 and debugging useability
This commit is contained in:
		
							parent
							
								
									93e8113022
								
							
						
					
					
						commit
						433b47f744
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
					@ -26,11 +26,6 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
 | 
					BRANCH=`git rev-parse --abbrev-ref HEAD`
 | 
				
			||||||
echo "The branch name is $BRANCH"
 | 
					echo "The branch name is $BRANCH"
 | 
				
			||||||
if [ $BRANCH = "develop" ]
 | 
					 | 
				
			||||||
then
 | 
					 | 
				
			||||||
    SRC_MAPS="--sourcemap"
 | 
					 | 
				
			||||||
    echo "Source maps are enabled "
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ]
 | 
					if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
| 
						 | 
					@ -46,7 +41,7 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export NODE_OPTIONS=--max-old-space-size=7000
 | 
					export NODE_OPTIONS=--max-old-space-size=7000
 | 
				
			||||||
which vite
 | 
					which vite
 | 
				
			||||||
vite build $SRC_MAPS 
 | 
					vite build --sourcemap 
 | 
				
			||||||
# Copy the layer files, as these might contain assets (e.g. svgs)
 | 
					# Copy the layer files, as these might contain assets (e.g. svgs)
 | 
				
			||||||
cp -r assets/layers/ dist/assets/layers/
 | 
					cp -r assets/layers/ dist/assets/layers/
 | 
				
			||||||
cp -r assets/themes/ dist/assets/themes/
 | 
					cp -r assets/themes/ dist/assets/themes/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue