Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grunt task: dirs in src list #33

Closed
arieljake opened this issue Apr 9, 2015 · 2 comments
Closed

Grunt task: dirs in src list #33

arieljake opened this issue Apr 9, 2015 · 2 comments
Labels

Comments

@arieljake
Copy link
Contributor

when I use this, and there are sub-directories in the "css" folder:

src: [
    'css/**/*'
],

I get an error in the grunt task when executing this line:

json.files[key]['version'] = hasher.update(grunt.file.read(path.join(options.basePath, item))).digest("hex")

error is due to trying to read a directory as a file. I fixed it with this:

var isDir = grunt.file.isDir(path.join(options.basePath, item));

if (!isDir)
{
    ...rest of code to create manifest file entries
}
@arieljake arieljake changed the title dirs in src list Grunt task: dirs in src list Apr 12, 2015
@markmarijnissen
Copy link
Owner

Could make a pull request for this? I'm not maintaining the grunt file right now! Thanks!

@ObjectiveTruth
Copy link
Collaborator

Closing since there's been no activity for 5 months, if the issue persists please reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants