webpack 4 + preact (#786)

This commit is contained in:
typicode
2018-05-30 12:39:10 +02:00
committed by GitHub
parent 8d0c5609fc
commit e9458a6409
16 changed files with 7935 additions and 192 deletions

View File

@ -7,9 +7,14 @@ const enableDestroy = require('server-destroy')
const pause = require('connect-pause')
const is = require('./utils/is')
const load = require('./utils/load')
const example = require('./example.json')
const jsonServer = require('../server')
const example = {
posts: [{ id: 1, title: 'json-server', author: 'typicode' }],
comments: [{ id: 1, body: 'some comment', postId: 1 }],
profile: { name: 'typicode' }
}
function prettyPrint(argv, object, rules) {
const host = argv.host === '0.0.0.0' ? 'localhost' : argv.host
const port = argv.port