Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Apr 28, 2015 · 1 comment
Open

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

ghost opened this issue Apr 28, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 28, 2015

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
Copy link

z3t0 commented Dec 30, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant