Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Process hangs even though it is pointing to the right files #19

Closed
simonwalsh opened this issue Aug 13, 2014 · 5 comments
Closed

Process hangs even though it is pointing to the right files #19

simonwalsh opened this issue Aug 13, 2014 · 5 comments

Comments

@simonwalsh
Copy link

I'm using the latest version of grunt-svg2png with grunt v0.4.4.

Here is my task config:

svg2png: {
      all: {
        files: [
          { cwd: '<%= pkg.path.images_source %>', src: ['layout/*.svg'], dest: '<%= pkg.path.images_source %>/layout/raster/' },
          (...)
        ]
      }
    }

When I run grunt svg2png:all --verbose on this baby, I get this output:

Running "svg2png:all" (svg2png) task
Verifying property svg2png.all exists in config...OK
Files: layout/chevrons_black_down.svg, layout/chevrons_black_top.svg, layout/chevrons_gray_down.svg, layout/chevrons_gray_top.svg, layout/chevrons_red_down.svg, layout/chevrons_red_top.svg, layout/chevrons_white_down.svg, layout/chevrons_white_top.svg -> app/assets/images/source/layout/raster/

But then the process hangs for infinity without ever outputing any errors or actually rastering the files...

Any ideas ?

@mednix
Copy link

mednix commented Aug 13, 2014

same on windows

@mednix
Copy link

mednix commented Aug 13, 2014

solved by removing 'cwd option'

@simonwalsh
Copy link
Author

@mednix When I do this, it recreates the whole tree of my assets folder in the dest folder...

@mednix
Copy link

mednix commented Aug 13, 2014

add ending slash to cwd and dest paths.

@simonwalsh
Copy link
Author

@mednix I ended up having to do as you said, which is kind of annoying, but it works now :

{ cwd: '<%= pkg.path.images_source %>/layout/', src: ['*.svg'], dest: '<%= pkg.path.images_source %>/layout/' }

Thanks!!!!

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

No branches or pull requests

2 participants