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

I'm having cwd issues #44

Closed
stevenalanstark opened this issue Apr 22, 2015 · 1 comment
Closed

I'm having cwd issues #44

stevenalanstark opened this issue Apr 22, 2015 · 1 comment
Assignees
Labels

Comments

@stevenalanstark
Copy link

Hello,

This is working without using cwd, but when I try to use cwd the path is partially duplicated. I'm unable to determine why this is happening.

grunt options:

svg_sprite: {
  client: {
    expand: true,
    cwd: 'client/public/svgs/',
    src: ['**/*.svg'],
    dest: 'client/public/out/',
    options: {
      mode: {
        css: {
          render: {
            css: true
          }
        }
      }
    }
  }
},

but when I run it, I get the following error:

$ grunt svg_sprite:client
Running "svg_sprite:client" (svg_sprite) task
>> Source file "c:\projects\gtp\client\public\svgs\client\public\svgs\mgk_vector_logo.svg" not found.

as you can read in the error, it's duplicating the 'client\public\svgs' part of the path, which is a mistake.

Am I doing something wrong, or is this a bug?

thank you,

~Steven

jkphl added a commit that referenced this issue Apr 22, 2015
@jkphl jkphl added the bug label Apr 22, 2015
@jkphl jkphl self-assigned this Apr 22, 2015
@jkphl
Copy link
Collaborator

jkphl commented Apr 22, 2015

Looks like this has been a Windows specific bug. Fixed with release v1.1.2. Cheers, Joschi

@jkphl jkphl closed this as completed Apr 22, 2015
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

2 participants