From a01044d09d0619e5c14f6d4471416900e8e095f2 Mon Sep 17 00:00:00 2001 From: Ian Beck Date: Fri, 23 Mar 2012 20:24:58 -0700 Subject: [PATCH] Added path.existsSync check before building the output directory to prevent build errors that will abort the minify --- tools/minifier/minify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/minifier/minify.js b/tools/minifier/minify.js index 6758a7bd5..a59589f7e 100644 --- a/tools/minifier/minify.js +++ b/tools/minifier/minify.js @@ -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); } //