$ gnpm install browserify-server
Spin up a quick & easy browserify server
var handler = require("browserify-server")("./static")
, http = require("http")
, server = http.createServer(handler).listen(8080)
You now have a HTTP server listening on port 8080 that will server the index.html
file in the static folder when you got to /
and server the index.js file browserified when you go to /bundle.js
No more browserify boilerplate ever again!
npm install browserify-server
make test
Copyright 2013 - present © cnpmjs.org | Home |