Tooling: stop build if something goes wrong

This commit is contained in:
Pieter Vander Vennet 2024-01-19 00:02:23 +01:00
parent 215b566955
commit 8f5634ea86

View file

@ -18,7 +18,7 @@ fi
export NODE_OPTIONS=--max-old-space-size=16000
which vite
vite --version
vite build --sourcemap
vite build --sourcemap || { echo 'Vite build failed' ; exit 1; }
# 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/