Merge pull request #15594 from antobinary/test-css-version
build: replace globally v=VERSION for cache busting
This commit is contained in:
commit
07bdc6bf12
@ -100,10 +100,10 @@ mkdir -p staging/usr/share
|
||||
|
||||
# replace v=VERSION with build number in head and css files
|
||||
if [ -f staging/usr/share/meteor/bundle/programs/web.browser/head.html ]; then
|
||||
sed -i "s/VERSION/$(($BUILD))/" staging/usr/share/meteor/bundle/programs/web.browser/head.html
|
||||
sed -i "s/VERSION/$(($BUILD))/g" staging/usr/share/meteor/bundle/programs/web.browser/head.html
|
||||
fi
|
||||
|
||||
find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec sed -i "s/VERSION/$(($BUILD))/" '{}' \;
|
||||
find staging/usr/share/meteor/bundle/programs/web.browser -name '*.css' -exec sed -i "s/VERSION/$(($BUILD))/g" '{}' \;
|
||||
|
||||
# Compress CSS, Javascript and tensorflow WASM binaries used for virtual backgrounds. Keep the
|
||||
# uncompressed versions as well so it works with mismatched nginx location blocks
|
||||
|
Loading…
Reference in New Issue
Block a user