You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
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!')
}
The text was updated successfully, but these errors were encountered: