Skip to content

Commit

Permalink
Merge pull request enyojs#43 from onecrayon/minifier-fix
Browse files Browse the repository at this point in the history
Prevents minify.js from exiting with an error when output folder already exists
  • Loading branch information
dfreedm committed Mar 25, 2012
2 parents e2535e6 + a01044d commit 5638717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/minifier/minify.js
Expand Up @@ -133,7 +133,7 @@ finish = function(loader) {
//
var output = opt.output || "build";
var outfolder = path.dirname(output);
if (outfolder != ".") {
if (outfolder != "." && !path.existsSync(outfolder)) {
fs.mkdirSync(outfolder);
}
//
Expand Down

0 comments on commit 5638717

Please sign in to comment.