Browse Source

add js minification to makefile and add gzipped files

oops
forest 3 months ago
parent
commit
a26e3edc2b
8 changed files with 4 additions and 2481 deletions
  1. +1
    -1
      Makefile
  2. +1
    -0
      bpgdec8.js
  3. BIN
      bpgdec8.wasm
  4. +1
    -2479
      html/bpgdec8.js
  5. BIN
      html/bpgdec8.js.gz
  6. BIN
      html/bpgdec8.wasm
  7. BIN
      html/bpgdec8.wasm.gz
  8. +1
    -1
      html/index.html

+ 1
- 1
Makefile View File

@ -52,7 +52,7 @@ EMLDFLAGS:=-s "EXPORTED_FUNCTIONS=['_bpg_decoder_open','_bpg_decoder_decode','_b
EMLDFLAGS+=-s NO_FILESYSTEM=1 -s 'EXPORTED_RUNTIME_METHODS=["cwrap"]'
#EMLDFLAGS+=-O1 --pre-js pre.js --post-js post.js
# Note: the closure compiler is disabled because it adds unwanted global symbols
EMLDFLAGS+=-O1 --memory-init-file 0 --closure 0 --pre-js pre.js --post-js post.js
EMLDFLAGS+=-Oz --memory-init-file 0 --closure 0 --pre-js pre.js --post-js post.js
EMCFLAGS:=$(CFLAGS)
LDFLAGS=-g


+ 1
- 0
bpgdec8.js
File diff suppressed because it is too large
View File


BIN
bpgdec8.wasm View File


+ 1
- 2479
html/bpgdec8.js
File diff suppressed because it is too large
View File


BIN
html/bpgdec8.js.gz View File


BIN
html/bpgdec8.wasm View File


BIN
html/bpgdec8.wasm.gz View File


+ 1
- 1
html/index.html View File

@ -6,7 +6,7 @@
bpgdec.js : up to 14 bits, no animation
bpgdec8a.js : 8 bit only, animations
-->
<script type="text/javascript" src="bpgdec8a.js"></script>
<script type="text/javascript" src="bpgdec8.js"></script>
</head>
<body>
<h1>BPG Decoding Demo</h1>


Loading…
Cancel
Save