Closed Mikxail closed 9 years ago
Sorry, this pull-request contains two different features and should be split.
I'm ok with providing phantomJsOptions
(since the config doesn't seem to work with some values #19), but there should be only one way to do so. Either via command arguments or via config-file.
What's more: Have you tested your fix? I don't think that command arguments will work without the --
-prefix. You should include tests for that.
Sorry for bad pull request. I'll split it and do pull request again.
What way you prefer for providing options to phantomjs?
spawn
function can receive 2 arguments. First argument is ignored if second argument will be passedspawn
function can receive only 1 argument. Pass arguments to run options if it is array/string. Pass to config file If it is objectI think, 1st is the best solution. But full back compatible may not worked.
Yep, the first one is the best. There are also great modules on npm to turn camelCase to dash-case.
Webpage must be closed on dispose.