Skip to content

Commit

Permalink
Ensure dist exists
Browse files Browse the repository at this point in the history
  • Loading branch information
latentflip committed Nov 10, 2019
1 parent 0a176bf commit fa40527
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
var browserify = require('browserify'),
fs = require('fs'),
uglify = require('uglify-js');
uglify = require('uglify-js'),
outdir = './dist';

if (!fs.existsSync(outdir)) {
fs.mkdirSync(outdir);
}

var b = browserify({ standalone: 'bows' });
b.add('./bows.js');
Expand Down

0 comments on commit fa40527

Please sign in to comment.