Browse Source

Add cache busting for Emoji spritemaps (#375)

Danilo Bargen 7 years ago
parent
commit
da95d2c78b
2 changed files with 6 additions and 0 deletions
  1. 0 0
      public/libs/emojione/emojione-sprite-32.min.css
  2. 6 0
      tools/emojione/patch-lib.sh

File diff suppressed because it is too large
+ 0 - 0
public/libs/emojione/emojione-sprite-32.min.css


+ 6 - 0
tools/emojione/patch-lib.sh

@@ -1,6 +1,12 @@
 #!/bin/sh
 set -e
 BASEPATH=../../public/libs/emojione
+EMOJIONE_VERSION=3.1
+
+# Spritemaps
 sed -i "s/emojione-32-/e1-/g" $BASEPATH/emojione-sprite-32.min.css
+sed -i "s/url(\([^)]*\.png\))/url(\1?v=${EMOJIONE_VERSION})/g" $BASEPATH/emojione-sprite-32.min.css
+
+# Javascript
 sed -i "s/emojione emojione-'+size+\"-\"/e1 e1-'/g" $BASEPATH/emojione.min.js
 sed -i "s/\"emojione/\"e1/g" $BASEPATH/emojione.min.js

Some files were not shown because too many files changed in this diff