From ec73522f6bf518fc74a22f16effc6545e52b17ed Mon Sep 17 00:00:00 2001 From: Jelle Sebreghts Date: Thu, 8 Aug 2024 11:50:49 +0200 Subject: [PATCH] Remove source folder after build After the build process is done, we have no more need for the source folder. Deleting it saves us around 150MB on the server where it is deployed, for each release we do. --- scripts/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 9dec1ebe9..7bfe18ad8 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -38,3 +38,6 @@ mkdir -p ../build/@digipolis-gent/modal; cp -R ./node_modules/@digipolis-gent/modal/dist/index.js ../build/@digipolis-gent/modal; cp -R ./node_modules/gent_styleguide/build/styleguide ../build; ./node_modules/.bin/gulp build; + +echo "Removing gent_base 'source' directory..."; +rm -rf ../source;