From 2e7cd6dca09ed8fc54fabd2143c155a40661c4ad Mon Sep 17 00:00:00 2001 From: Nicolas Turlais Date: Tue, 13 Jun 2017 17:47:52 +0200 Subject: [PATCH] Added viewportSize to exemple --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bb3e7c..cecfed9 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,13 @@ module.exports = { phantomPageSettings: { loadImages: true }, - + + // http://phantomjs.org/api/webpage/property/viewport-size.html + phantomPageViewportSize: { + width: 1280, + height: 800 + }, + // Manually transform the HTML for each page after prerendering, // for example to set the page title and metadata in edge cases // where you cannot handle this via your routing solution.