Created
April 8, 2012 17:20
-
-
Save stephan83/2338601 to your computer and use it in GitHub Desktop.
Browserify templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browserify = require 'browserify' | |
eco = require 'eco' | |
bundle = browserify { | |
mount: '/javascripts/bootstrap.js' | |
} | |
bundle.register '.eco', (body) -> | |
"module.exports = #{eco.precompile body};" | |
bundle.addEntry path.join(__dirname, './lib/bootstrap.coffee') | |
app.use bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment