Skip to content
Browse files

Add support for ignoring files

  • Loading branch information...
1 parent dc117b2 commit ad9d58318ef3c3a332bb00af7965c783becca05a @pvorb committed Feb 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bake.js
View
5 bake.js
@@ -31,6 +31,8 @@ var bake = function(conf, hooks, cb) {
var fileExtPattern
= new RegExp('\\.(' + Object.keys(fileExt).join('|') + ')$', 'i');
+ var ignore = conf.ignore || [];
+
// Status log
console.log('Beginning to bake ' + inputDir + '.');
@@ -44,7 +46,8 @@ var bake = function(conf, hooks, cb) {
var match;
// Match the master-file's name against enabled file extensions
- if (match = master.match(fileExtPattern)) {
+ if (ignore.indexOf(master) == -1
+ && (match = master.match(fileExtPattern))) {
// Get the file extension of the master file
var masterExt = match[1];

0 comments on commit ad9d583

Please sign in to comment.
Something went wrong with that request. Please try again.