Skip to content

Instantly share code, notes, and snippets.

@postspectacular
Created July 3, 2016 02:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postspectacular/e34e02b023ce311428214cd50821ab0d to your computer and use it in GitHub Desktop.
Save postspectacular/e34e02b023ce311428214cd50821ab0d to your computer and use it in GitHub Desktop.
STL mesh viewer & WebWorker example
lein do clean, cljsbuild once min && node postprocess.js
var fs = require('fs');
var path = 'resources/public/js/meshworker.js';
var include = 'self.importScripts("base.js");';
src = include + fs.readFileSync(path,'utf8').replace(include, '');
fs.writeFileSync(path, src, 'utf8');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment