Quellcode durchsuchen

Fixed errors in build system.

tags/1.0
Matthew Petroff vor 12 Jahren
Ursprung
Commit
0cc18cf1f8
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +1
    -1
      build/pannellum.htm
  2. +4
    -4
      utils/build.py

+ 1
- 1
build/pannellum.htm
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 4
- 4
utils/build.py Datei anzeigen

@@ -91,11 +91,11 @@ def build(files, css, html, filename):
print "=" * 40
css = merge(css)
css = css.replace("url('img/grab.png')","'data:image/png;base64," + read('css/img/grab.png').encode('base64').replace('\n', '') + "'")
css = css.replace("url('img/grabbing.png')","'data:image/png;base64," + read('css/img/grabbing.png').encode('base64').replace('\n', '') + "'")
css = css.replace("url('img/loading.svg')","'data:image/svg+xml;base64," + read('css/img/loading.svg').encode('base64').replace('\n', '') + "'")
css = css.replace("'img/grab.png'","'data:image/png;base64," + read('css/img/grab.png').encode('base64').replace('\n', '') + "'")
css = css.replace("'img/grabbing.png'","'data:image/png;base64," + read('css/img/grabbing.png').encode('base64').replace('\n', '') + "'")
css = css.replace("'img/loading.svg'","'data:image/svg+xml;base64," + read('css/img/loading.svg').encode('base64').replace('\n', '') + "'")
css = cssCompress(css)
css = css.replace("url('img/sprites.png')","'data:image/png;base64," + read('css/img/sprites.png').encode('base64').replace('\n', '') + "'")
css = css.replace("'img/sprites.png'","'data:image/png;base64," + read('css/img/sprites.png').encode('base64').replace('\n', '') + "'")
print "=" * 40
print "Compiling", htmlfilename


Laden…
Abbrechen
Speichern