mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Add a simple script to generate SRI hashes for our assets. (#24814)
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user