You should use the option transform: ['node-underscorify']
.
browserify: {
app: {
files: {
'dist/js/app.js': ['app/main.js']
},
options: {
transform: ['node-underscorify'],
debug: true,
external: ['jquery', 'underscore', 'backbone', 'backbone.marionette']
}
}
}
Then in one of your modules you can load a template like this:
var template = require('./template.html');
$('#el').html(template({key: 'value'});