Open kty opened 8 years ago
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.:
require
-r
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).
index.js
Unless I'm doing something wrong?
A pull request would be welcome! Otherwise I can look at this probably next week.
Relevant piece of my gulpfile:
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?