aboutsummaryrefslogtreecommitdiff
path: root/build/ship.sh
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-11-23 10:22:54 +0200
committerGitHub <[email protected]>2017-11-23 10:22:54 +0200
commitcdab56d940b3c4c9714005aa3caa8842f3e4e8c3 (patch)
tree7fc236b47cb27218c120a465364e85b5c0d878b7 /build/ship.sh
parentdcb761350c72d77a4288493efc5b9a043feb9a26 (diff)
downloadbootstrap-cdab56d940b3c4c9714005aa3caa8842f3e4e8c3.tar.xz
bootstrap-cdab56d940b3c4c9714005aa3caa8842f3e4e8c3.zip
Add a simple script to generate SRI hashes for our assets. (#24814)
Diffstat (limited to 'build/ship.sh')
-rwxr-xr-xbuild/ship.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/ship.sh b/build/ship.sh
index cdd5ab8eb..d252cd38f 100755
--- a/build/ship.sh
+++ b/build/ship.sh
@@ -40,6 +40,12 @@ printf "\n${magenta}Compile latest CSS and JS...${end}"
printf "\n${magenta}=======================================================\n${end}"
npm run dist
+# Generate the SRI hashes
+printf "\n${magenta}=======================================================${end}"
+printf "\n${magenta}Generate the SRI hashes...${end}"
+printf "\n${magenta}=======================================================\n${end}"
+npm run release-sri
+
# Compress the dist files
printf "\n${magenta}=======================================================${end}"
printf "\n${magenta}Compressing the dist files...${end}"