extend examples
This commit is contained in:
10
extend/live-reload/index.html
Normal file
10
extend/live-reload/index.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>live-reload demo</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Live reloaded attached</h1>
|
||||
</body>
|
||||
</html>
|
9
extend/live-reload/server.js
Normal file
9
extend/live-reload/server.js
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
const Cli = require('../../')
|
||||
const liveReload = require('koa-livereload')
|
||||
|
||||
const ws = new Cli()
|
||||
ws.addLogging('dev')
|
||||
.add({ middleware: liveReload })
|
||||
.addStatic()
|
||||
.start()
|
Reference in New Issue
Block a user