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

It doesn't work while console outputs "Done, without errors" #2

Open
hwoarangzk opened this issue Aug 20, 2014 · 5 comments
Open

It doesn't work while console outputs "Done, without errors" #2

hwoarangzk opened this issue Aug 20, 2014 · 5 comments

Comments

@hwoarangzk
Copy link

I put the following code in my Gruntfiles:
base64: {
files: {
'./dest/testing123.b64': './src/images/*.png'
}
}
When I run grunt base64, the console indicated that there is no error running this task, but there is nothing in the dest folder. Anything I've done wrong?

@dmlap
Copy link
Contributor

dmlap commented Aug 20, 2014

Does it work if you try this?

{
  base64: {
    './dest/testing123.b64': './src/images/*.png'
  }
}

@hwoarangzk
Copy link
Author

I tried:
base64: {
'./dest/testing123.b64': './src/images/*.png'
}
and
base64: {
'./dest/testing123.b64': './src/images/'
}
none of the above worked

@jovpet
Copy link

jovpet commented Nov 3, 2014

I have the same issue. the difference is only that I used:

files: {
  'svg/base64/test.b64': 'svg/img/*.png'
}

No errors, no output in folder

@flakyfilibuster
Copy link

Oi, came here to say, that grunt-base64 apparently expects a target, and doesn't work without one...

So, while

base64: {
  files: {
    'dest/testing123.b64': ['src/testing', 'src/123'],
  },
}

does not work

base64: {
  target: {
    files: {
      'dest/testing123.b64': ['src/testing', 'src/123'],
    }
  } 
}

does work.

Hope this helps

@hwoarangzk
Copy link
Author

Oh thank you very much :) It really helped me a lot!

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

No branches or pull requests

4 participants