fix dev server

This commit is contained in:
Nolan Lawson 2016-06-17 06:49:32 -07:00
parent d1226c6936
commit c6d0cfd5e1
1 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,6 @@
'use strict';
var PouchDB = require('pouchdb');
var COUCH_HOST = process.env.COUCH_HOST || 'http://127.0.0.1:5984';
var HTTP_PORT = 8001;
@ -14,7 +13,13 @@ var indexfile = "./test/test.js";
var dotfile = "./test/.test-bundle.js";
var outfile = "./test/test-bundle.js";
var watchify = require("watchify");
var w = watchify(indexfile);
var browserify = require('browserify');
var w = watchify(browserify(indexfile, {
cache: {},
packageCache: {},
fullPaths: true,
debug: true
}));
w.on('update', bundle);
bundle();