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

LoadError when trying to require multiple files #16

Open
kty opened this issue Nov 23, 2015 · 1 comment
Open

LoadError when trying to require multiple files #16

kty opened this issue Nov 23, 2015 · 1 comment
Labels

Comments

@kty
Copy link

kty commented Nov 23, 2015

Relevant piece of my gulpfile:

.pipe(haml({
    require: [
        "date",
        "./lib/haml/render.rb",
    ]
}))

This results in error:

'LoadError: cannot load such file -- date,./lib/haml/render.rb\n Use --trace for backtrace.\n'

AFAIK, each entry in require should be passed as a separate -r parameter, i.e.:

haml -r date,./lib/haml/render.rb

should be

haml -r date -r ./lib/haml/render.rb

Changing the relevant bit in the task's index.js made it work (I could make a pull request).

Unless I'm doing something wrong?

@cheshire137
Copy link
Owner

A pull request would be welcome! Otherwise I can look at this probably next week.

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