Przeglądaj źródła

write hashes for all files we fingerprint

Henry Oswald 8 lat temu
rodzic
commit
288af6772a

+ 7 - 3
services/web/.gitignore

@@ -69,12 +69,16 @@ Gemfile.lock
 
 public/js/libs/fineuploader-5.15.4.*.js
 public/js/libs/fineuploader-*.js
-public/js/libs/pdfjs-1.7.225/compatibility.*.js
-public/js/libs/pdfjs-1.7.225/pdf.*.js
-public/js/libs/pdfjs-1.7.225/pdf.worker.*.js
+public/js/libs/pdfjs-*/compatibility.*.js
+public/js/libs/pdfjs-*/pdf.*.js
+public/js/libs/pdfjs-*/pdf.worker.*.js
 public/js/libs/require.*.js
 public/stylesheets/ol-style.*.css
 public/stylesheets/style.*.css
+public/js/ace-*/ace.*.js
+public/js/ace-*/mode-latex.*.js
+public/js/ace-*/snippets/latex.*.js
+public/js/ace-*/worker-latex.*.js
 
 *.swp
 .DS_Store

+ 1 - 2
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -60,8 +60,7 @@ for paths in pathList
 		logger.log "#{filePath}: #{hash}"
 		fingerprints[filePath] = hash
 
-	if paths.length == 1
-		path = paths[0]
+	for path in paths
 		splitPath = path.split("/")
 		filenameSplit = splitPath.pop().split(".")
 		filenameSplit.splice(filenameSplit.length-1, 0, hash)