Permalink
Browse files

Use Webshot CLI to simplify the command

  • Loading branch information...
1 parent 076ce5c commit 7bab99986c33b44b8bfa90d20874bde2d90aaa14 @valeriangalliat valeriangalliat committed Oct 5, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -5,5 +5,5 @@ all:
shot: screenshot.png
screenshot.png: example.html
- if [ ! -d node_modules/webshot ]; then npm install webshot; fi
- echo "require('webshot')('file://$(PWD)/$<', '$@', {shotSize: {width: 552, height: 'all'}}, function (e) {if (e) throw e;});" | $(NODE)
+ if [ ! -d node_modules/webshot-cli ]; then npm install webshot-cli; fi
+ node_modules/webshot-cli/webshot --shot-size=552/all $< $@

0 comments on commit 7bab999

Please sign in to comment.