fix incorrect extensions variable reference - fixes #1460

This commit is contained in:
Sebastian McKenzie 2015-05-06 16:23:15 +01:00
parent bf0e4ede00
commit 31a4195c81

View File

@ -30,7 +30,7 @@ module.exports = function (commander, filenames, opts) {
var handleFile = function (src, filename) {
if (util.shouldIgnore(src)) return;
if (util.canCompile(filename, commander.extensions)) {
if (util.canCompile(filename, opts.extensions)) {
write(src, filename);
} else if (commander.copyFiles) {
outputFileSync(path.join(commander.outDir, filename), fs.readFileSync(src));