We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0557b39 commit 6192cb5Copy full SHA for 6192cb5
example/static/build.sh
@@ -0,0 +1,2 @@
1
+#!/bin/bash
2
+browserify ../timing.js -o bundle.js
example/static/index.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
3
+<head>
4
+<style>
5
+body {
6
+ font-family: monospace;
7
+ white-space: pre;
8
+}
9
+</style>
10
+</head>
11
+<body>
12
+<script>
13
+if (typeof console === 'undefined') console = {};
14
+console.log = function (msg) {
15
+ var txt = document.createTextNode(msg);
16
+ document.body.appendChild(txt);
17
+};
18
+</script>
19
+<script src="bundle.js"></script>
20
+</body>
21
+</html>
example/static/server.js
@@ -0,0 +1,4 @@
+var http = require('http');
+var ecstatic = require('ecstatic')(__dirname);
+var server = http.createServer(ecstatic);
+server.listen(8000);
0 commit comments