First, do whatever bundling you need to do, example:
npm run build-stuff
Log into NPM:
npm login
| <!-- MIT License --> | |
| <html> | |
| <head> | |
| <script> | |
| function generateKey(alg, scope) { | |
| return new Promise(function(resolve) { | |
| var genkey = crypto.subtle.generateKey(alg, true, scope) | |
| genkey.then(function (pair) { | |
| resolve(pair) | |
| }) |
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
First, do whatever bundling you need to do, example:
npm run build-stuff
Log into NPM:
npm login
| /** | |
| * This shader creates fisheye or barrel distortion by sliding values in the | |
| * desired direction. It aims to have a minimal amount of pixelation, and was | |
| * originally conceived of to procedurally generate cartoon planets and bodies | |
| * from easily generatable flat textures. | |
| * | |
| * Thanks to user Dan (6145) on Stack Overflow for providing the math. I also | |
| * stole some code from here for the texture placement: | |
| * https://gist.github.com/quiglemj/971f4cec1b128c58b4864c5200bfc579 | |
| * This shader differs from the above gist in that it does not stretch the |