Disable source maps, they take too much memory

This commit is contained in:
Pieter Vander Vennet 2023-12-06 02:36:36 +01:00
parent 608d2b39e8
commit 54906dbb80

View file

@ -13,10 +13,10 @@ mkdir dist/assets 2> /dev/null
export NODE_OPTIONS="--max-old-space-size=16384"
# This script ends every line with '&&' to chain everything. A failure will thus stop the build
npm run generate:editor-layer-index &&
npm run generate &&
npm run refresh:layeroverview &&
npm run generate:layouts
# npm run generate:editor-layer-index &&
# npm run generate &&
# npm run refresh:layeroverview && # an extra refersh is needed, as the favourites layer won't have expanded icons otherwise
# npm run generate:layouts
if [ $? -ne 0 ]; then
echo "ERROR - stopping the build"
@ -51,7 +51,8 @@ fi
export NODE_OPTIONS=--max-old-space-size=16000
which vite
vite build --sourcemap
vite --version
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/