Browse Source

Fixed errors in build system.

tags/1.0
Matthew Petroff 12 years ago
parent
commit
0cc18cf1f8
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      build/pannellum.htm
  2. +4
    -4
      utils/build.py

+ 1
- 1
build/pannellum.htm
File diff suppressed because it is too large
View File


+ 4
- 4
utils/build.py View File

@@ -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


Loading…
Cancel
Save