Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Wrong paths in grunt.filerev.summary when a cwd was defined #15

Open
@binarykitchen

Description

@binarykitchen

Okay, next one:

When I have this grunt config

        filerev: {
            images: {
                expand: true,
                cwd: 'client',
                src: 'images/site/**/*.*',
                dest: 'server/public
            }

Then we have those entries in grunt.filerev.summary:

{ 
  'client/images/site/btn/facebook-login-btn.png': 'server/public/images/site/btn/facebook-login-btn.7e70e4e8.png',
  'client/images/site/btn/facebook-signup-btn.png': 'server/public/images/site/btn/facebook-signup-btn.071c597b.png',
  'client/images/site/btn/google-login-btn.png': 'server/public/images/site/btn/google-login-btn.d8f30867.png',
  'client/images/site/btn/google-signup-btn.png': 'server/public/images/site/btn/google-signup-btn.5df3ce2e.png'
}

But I do not want the client part in them. Because of the cwd option. Same goes with the destination part, server/public should not be here. Ideally I want something like this:

Then we have those entries in grunt.filerev.summary:

{ 
  'images/site/btn/facebook-login-btn.png': 'images/site/btn/facebook-login-btn.7e70e4e8.png',
  'images/site/btn/facebook-signup-btn.png': 'images/site/btn/facebook-signup-btn.071c597b.png',
  'images/site/btn/google-login-btn.png': 'images/site/btn/google-login-btn.d8f30867.png',
  'images/site/btn/google-signup-btn.png': 'images/site/btn/google-signup-btn.5df3ce2e.png'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions