gruntjs - grunt-contrib-jade unable to read file (EISDIR) -


executing grunt jade:dev on this

grunt.initconfig({     "jade": {         "dev": {             "files": {                 "cwd": "src",                 "src": ["**/*.jade"],                 "dest": "dist",                 "ext": ".html",                 "expand": true             },             "options": {                 "pretty": true,                 "data": {                     "environment": "dev"                 }             }         },         "prod": {             "files": {                 "cwd": "src",                 "src": ["**/*.jade"],                 "dest": "dist",                 "ext": ".html",                 "expand": true             },             "options": {                 "pretty": true,                 "data": {                     "environment": "prod"                 }             }         }     } }); 

fails with

warning: unable read "src" file (error code: eisdir). use --force continue.

but executing grunt jade on this

grunt.initconfig({     "jade": {         "files": {             "cwd": "src",             "src": ["**/*.jade"],             "dest": "dist",             "ext": ".html",             "expand": true         },         "options": {             "pretty": true,             "data": {                 "environment": "dev"             }         }     } }); 

succeeds.

there no difference between configuration of tasks i'm running in both cases. missing?

i don't know why, seems work:

grunt.initconfig({     "jade": {         "dev": {             "cwd": "src",             "src": ["**/*.jade"],             "dest": "dist",             "ext": ".html",             "expand": true,             "options": {                 "pretty": true,                 "data": {                     "environment": "dev"                 }             }         },         "prod": {             "cwd": "src",             "src": ["**/*.jade"],             "dest": "dist",             "ext": ".html",             "expand": true,             "options": {                 "pretty": true,                 "data": {                     "environment": "prod"                 }             }         }     } }); 

all did remove enclosing "files" object.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -