Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Merge branch 'visiongeist-fix-build'
Browse files Browse the repository at this point in the history
  • Loading branch information
cubiq committed Jun 2, 2014
2 parents 6019c7a + 0095424 commit 4ef4a80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,12 @@ function build (release) {
// Write dist file
var distFile = buildFile.replace('/build/', '/dist/').replace('.js', '-min.js');
out = uglify.minify(out, { fromString: true });

// Make sure dist folder exists
if ( !fs.existsSync('dist') ) {
fs.mkdirSync('dist');
}

// Write files to target
fs.writeFileSync(distFile, banner + out.code);
}

0 comments on commit 4ef4a80

Please sign in to comment.