chrisdickinson / beefy

local development server that aims to make using browserify fast and fun
http://didact.us/beefy/
MIT License
801 stars 49 forks source link

How to use the options 'watchify' and 'live'? #82

Open ghost opened 9 years ago

ghost commented 9 years ago

I set watchifyand 'live' to true value ,and I change the main.js file content, But the bundle.js can't' reload .I just want to live reload my bundle.js file. can anyone help ?

var beefy = require('beefy') , http = require('http');

http.createServer(beefy({ entries: ['main.js'] , cwd: __dirname , live: true , quiet: false , watchify: true , bundler: "./node_modules/.bin/browserify" , bundlerFlags: ['-o', 'bundle.js'] , unhandled: on404 })).listen(8124);

function on404(req, resp) { resp.writeHead(404, {}) resp.end('sorry folks!') }

z3t0 commented 8 years ago

same problem here, it simply says "404" when looking for the live reload file