If you forget { read: false }, gulp-browserify will passes the contents stream of a incoming file to node-browserify. Then node-browserify names the stream as fake_xxx.js and process it. Some transforms such as coffeeify determines whether to transform files with extensions. That is why you need { read: false } for AltJS.
debug
Type : Boolean
Enable source map support. !gulp.env.production would work well.
extensions
Type: [String]
Array of extensions that you want to skip in require() calls in addition to .js and .json. Don't forget ..
With { extensions: ['.coffee'] }, you can do require('app'). Instead, you have to do require('app.coffee').
ignore
Type: [String]
Array of paths which should be passed to the ignore function of
browserify.
resolve
Type: Function
Custom module name resolution function. From node-browserify documentation:
You can give browserify a custom opts.resolve() function or by default it uses
browser-resolve.
Obviously, this function must implement the same API as browser-resolve.
Other Options
Any other options you provide will be passed through to browserify. This is useful for setting things like standalone or ignoreGlobals.
Custom options
nobuiltins
Remove builtins modules defined in lib/builtins.js (browserify module).
opts.builtins must be not defined and opts.nobuiltins can be an Array of
Strings or simply a String.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.