dashpay / paper.dash.org

JavaScript Client-Side Dash Wallet Generator
https://paper.dash.org
41 stars 37 forks source link

extract embedded base64 images to files #10

Closed nmarley closed 6 years ago

nmarley commented 6 years ago

Adds a Grunt task to read external (on-disk) files & inject them as base64 embedded into the HTML. This makes replacing images (e.g. for rebranding) much simpler, and is a more common method for building an SPA.

Output below (can be verified) shows that resulting build artifact is unchanged:

$ git log -1 --oneline
94bac35 (HEAD -> extract-images, nmarley/extract-images) replace base64 images in files with template refs
$ npm run build

> paper.dash.org@3.3.0-dash build /Users/nmarley/projects/paper.dash.org
> grunt

Running "combine:single" (combine) task
Processing Input: ./src/bitaddress-ui.html
Writing Output: ./paper.dash.org.html
Combine task completed in 0.063 seconds

Running "lineending:dist" (lineending) task
File "./paper.dash.org.html" created.

Running "assetenc" task

Done, without errors.
$ sha256sum -c paper.dash.org.html.sha256sum
paper.dash.org.html: OK
$ gpg --verify paper.dash.org.html.sha256sum.sig
gpg: assuming signed data in 'paper.dash.org.html.sha256sum'
gpg: Signature made Thu Feb  1 10:12:24 2018 PST
gpg:                using RSA key 3F5D48C9F00293CD365A3A9883592BD1400D58D9
gpg: Good signature from "UdjinM6 <UdjinM6@dash.org>" [unknown]
gpg:                 aka "UdjinM6 <UdjinM6@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 3F5D 48C9 F002 93CD 365A  3A98 8359 2BD1 400D 58D9