Display browserify errors in the output page
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
src
.eslintignore
.eslintrc
.gitignore
README.md
gulpfile.js
license.txt
package.json
server.js

README.md

Browserify Build Status

Codeship Status for tqc/browserify-build-status

Display browserify build status on the output page.

##Usage:

var statusReporter = require("browserify-build-status");
var b = browserify(...)
// plugin adds error handlers to the browserify object
b.plugin(statusReporter, opts);
b = b.bundle()
// writeFile sets the "build incomplete" message and waits for 
// browserify to finish before writing either the finished build 
// output or an error message.
b = b.pipe(statusReporter.writeFile("app.js"));

Default options

{
    // selector for the element that will be updated with any error message
    selector: "body"
}

Demo