#1 Ignore nunjucks files on compile

Fusionado
Ghost fusionadas 1 achegas de charlesrt/master en candlewaster/master %!s(int64=7) %!d(string=hai) anos
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/index.js

+ 1 - 1
lib/index.js

@@ -229,7 +229,7 @@ exports.compile = function(projectPath, outputPath, callback){
    */
   var copyFile = function(file, done){
     var ext = path.extname(file)
-    if(!terraform.helpers.shouldIgnore(file) && [".jade", ".ejs", ".md", ".styl", ".less", ".scss", ".sass", ".coffee"].indexOf(ext) === -1){
+    if(!terraform.helpers.shouldIgnore(file) && [".jade", ".ejs", ".nunjucks", ".njk", ".md", ".styl", ".less", ".scss", ".sass", ".coffee"].indexOf(ext) === -1){
       var localPath = path.resolve(outputPath, file)
       fs.mkdirp(path.dirname(localPath), function(err){
         fs.copy(path.resolve(setup.publicPath, file), localPath, done)