Include one file directly into another with browserify
Want to see pretty graphs? Log in now!
npm install includify
|8||downloads in the last week|
|17||downloads in the last month|
|Last Published By|
|Version||1.2.3 last updated 3 months ago|
|Keywords||browserify, fs, include|
Include the contents of a file during browserify build.
In your .js file:
The 'includify' call will be replaced with the contents of foo.js.
You may optionally pass a second parameter to describe how the file should be included:
// Will be replaced with the contents of foo.js (the default). includify('./foo.js', 'direct'); // Will be replaced with a string containing the base64 encoding of foo.gif var imgUrl = "data:image/png;base64," + includify('./loading.gif', 'base64');