Skip to content

Commit 7167782

Browse files
committed
Merge branch 'master' of github.com:GoogleChromeLabs/puppeteer-examples
2 parents af0d526 + 2e924d9 commit 7167782

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

crawlsite.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
* Then open the visualizer in a browser:
3030
* http://localhost:8080/html/d3tree.html
3131
* http://localhost:8080/html/d3tree.html?url=../output/https___yourspa.com/crawl.json
32+
*
33+
*Start Server:
34+
* node server.js
35+
*
3236
*/
3337

3438
const fs = require('fs');

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"chrome-launcher": "^0.10.2",
1818
"cli-table": "^0.3.1",
1919
"del": "^3.0.0",
20+
"express": "^4.16.3",
2021
"lighthouse": "^2.9.4",
2122
"mime": "^2.3.1",
2223
"node-fetch": "^2.1.2",

server.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const express = require('express');
2+
const app = express();
3+
4+
app.use(express.static('.'));
5+
6+
app.listen(8080);

0 commit comments

Comments
 (0)