Feature: enable source maps, see and debugging useability

This commit is contained in:
Pieter Vander Vennet 2023-11-12 12:39:12 +01:00
parent 93e8113022
commit 433b47f744

View file

@ -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/