Open ghost opened 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 ?
watchify
true
main.js
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!') }
same problem here, it simply says "404" when looking for the live reload file
I set
watchify
and 'live' totrue
value ,and I change themain.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!') }