Created
July 3, 2016 02:48
-
-
Save postspectacular/e34e02b023ce311428214cd50821ab0d to your computer and use it in GitHub Desktop.
STL mesh viewer & WebWorker example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lein do clean, cljsbuild once min && node postprocess.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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