Browserify inline script tags in HTML
Browserify inline script tags in HTML.
We have a
index.html page with:
Then as we serve the HTML we can transform it:
var scriptify =// Bundle an HTML filefs// Or bundle as the server requests it:var http =var fs =httpconsole
selector: Defaults to
args: Defaults to
. Arguments to pass to
I don't know. Probably not. I'm just being lazy and sometimes don't want to have a separate file for an entry point.
With npm do:
npm install scriptify
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.