Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don’t require rootDir when running in node
  • Loading branch information
dfabulich committed Feb 25, 2015
1 parent da5bf0d commit 8abb436
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compile.js
Expand Up @@ -10,7 +10,11 @@ if (typeof process != "undefined") {
var outputFile = process.argv[2];
if (!outputFile) throw new Error("Specify an output file on the command line");
rootDir = process.argv[3];
rootDir += "/";
if (rootDir) {
rootDir += "/";
} else {
rootDir = "web/";
}
fs = require('fs');
path = require('path');
vm = require('vm');
Expand Down

0 comments on commit 8abb436

Please sign in to comment.