@@ -26,7 +26,7 @@ fi
if [ "$DONT_COMPILE_LESS" = "" ];
then
- export CMD="npm install less -g&&lessc static/css/style.less static/css/style.css&&$CMD"
+ export CMD="sleep 2&&echo 'export default \"`date +%s`\"'> static/js/build-id.js&&npm install less -g&&lessc static/css/style.less static/css/style.css&&$CMD"
fi
@@ -1,7 +1,8 @@
+import _buildId from "./build-id.js";
+
export default class Cache {
static getCacheId(){
- return "dQL5aNkS";
-
+ return _buildId;
}
static buildFullKey(key){
key="jme-"+key+"-cache";