Bläddra i källkod

Fixed errors in build system.

tags/1.0
Matthew Petroff 12 år sedan
förälder
incheckning
0cc18cf1f8
2 ändrade filer med 5 tillägg och 5 borttagningar
  1. +1
    -1
      build/pannellum.htm
  2. +4
    -4
      utils/build.py

+ 1
- 1
build/pannellum.htm
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 4
- 4
utils/build.py Visa fil

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


Laddar…
Avbryt
Spara