remove live browserify

This commit is contained in:
jean-emmanuel 2016-03-27 16:52:19 +02:00
parent a0b8d004fc
commit c79b095e62

View file

@ -8,15 +8,11 @@ module.exports = function(settings) {
server = http.createServer(express),
io = require('socket.io')(),
ioWildcard = require('socketio-wildcard')(),
browserify = require('browserify'),
ipc = {}
ipc = {}
express.get('/', function(req, res){
res.sendFile(path.resolve(__dirname + '/../browser/index-headless.html'))
})
express.get('*browser-headless.js', function(req, res){
browserify().add(path.resolve(__dirname + '/../browser' + req.path)).bundle().pipe(res);
})
express.get('*', function(req, res){
res.sendFile(path.resolve(__dirname + '/../browser' + req.path))
})