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

Cannot copy multiple directories into the same target directory #10

Open
benr77 opened this issue Jan 12, 2017 · 0 comments
Open

Cannot copy multiple directories into the same target directory #10

benr77 opened this issue Jan 12, 2017 · 0 comments

Comments

@benr77
Copy link

benr77 commented Jan 12, 2017

I've recently run in to a problem whereby I'm trying to copy the contents of two directories to the same target directory (in this case, FontAwesome and Glyphicon font files in to web/fonts)

"vendorCopy": [
    {
      "from": "node_modules/font-awesome/fonts",
      "to": "web/fonts/"
    },
    {
      "from": "node_modules/bootstrap/fonts",
      "to": "web/fonts/"
    }
  ]

Running this configuration resulted in the following (exceedingly helpful!) error message:

Failed to install vendor modules: undefined

After a lot of time spend debugging, it seems that vendor-copy cannot handle copying multiple directories into the same destination directory.

I could have specified each file individually, but this would have been really verbose and bloated my package.json.

My solution in the end has been to deploy one to web/fonts and the other to web/fonts2 and then use an additional command to move the contents of web/fonts2 into web/fonts

I've solved my problem for the moment, and am not sure if this is a bug or not, but hopefully for future Google searches this will help someone as it's cost me a few hours of pulling my hair out!

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

1 participant