diff options
Diffstat (limited to 'lib/precompiler.js')
-rw-r--r-- | lib/precompiler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/precompiler.js b/lib/precompiler.js index bae923c..6764022 100644 --- a/lib/precompiler.js +++ b/lib/precompiler.js @@ -60,7 +60,7 @@ module.exports.cli = function(opts) { output.push(opts.namespace); output.push(' || {};\n'); } - function processTemplate(template, root, explicit) { + function processTemplate(template, root) { var path = template, stat = fs.statSync(path); if (stat.isDirectory()) { @@ -71,7 +71,7 @@ module.exports.cli = function(opts) { processTemplate(path, root || template); } }); - } else if (explicit || extension.test(path)) { + } else { var data = fs.readFileSync(path, 'utf8'); if (opts.bom && data.indexOf('\uFEFF') === 0) { @@ -112,7 +112,7 @@ module.exports.cli = function(opts) { } opts.templates.forEach(function(template) { - processTemplate(template, opts.root, true); + processTemplate(template, opts.root); }); // Output the content |