Permalink
Browse files

Ignore comment lines in .mincerrc file

  • Loading branch information...
1 parent b4af3ac commit fe3a4efb1109a4d1dd27b5e99886e7d91040cce1 @ixti ixti committed Jul 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/mincer.js
View
@@ -55,9 +55,9 @@ cli.addArgument(['filenames'], {
if (-1 === process.argv.indexOf('--noenv')) {
- if (fs.existsSync('./.mincerrc')) {
- var rcflags = shellwords(fs.readFileSync('./.mincerrc', 'utf8'));
- [].splice.apply(process.argv, [2, 0].concat(rcflags));
+ if (fs.existsSync('.mincerrc')) {
+ var rcflags = fs.readFileSync('.mincerrc', 'utf8').replace(/^#.*/gm, '');
+ [].splice.apply(process.argv, [2, 0].concat(shellwords(rcflags)));
}
}

0 comments on commit fe3a4ef

Please sign in to comment.