From 433b47f744803480641b439225c776e660cd3f1f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 12 Nov 2023 12:39:12 +0100 Subject: [PATCH] Feature: enable source maps, see #1698 and debugging useability --- scripts/build.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 3c3cc385b..359c81ecc 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -26,11 +26,6 @@ fi BRANCH=`git rev-parse --abbrev-ref HEAD` echo "The branch name is $BRANCH" -if [ $BRANCH = "develop" ] -then - SRC_MAPS="--sourcemap" - echo "Source maps are enabled " -fi if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ] then @@ -46,7 +41,7 @@ fi export NODE_OPTIONS=--max-old-space-size=7000 which vite -vite build $SRC_MAPS +vite build --sourcemap # Copy the layer files, as these might contain assets (e.g. svgs) cp -r assets/layers/ dist/assets/layers/ cp -r assets/themes/ dist/assets/themes/