Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A JavaScript bundler and minifier for express.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Readme.md
index.js
package.json

Readme.md

bund-cake

A JavaScript bundler and minifier for express.

The JavaScript outputs to /assets/bundle/[bundled-file].js

Usage

In app.js (after your app.configure() block)

GLOBAL.bund = require('bund-cake')(app)

And this snippet of EJS in your view,

<%- bund.js('./public/javascripts/annoying-popups.js', './public/javascripts/one-weird-tip.js') %>

Issues/Concerns

I haven't tested this with JS files from another domain or CDN. The very first hit to the server is slow, but is okay after that.

Something went wrong with that request. Please try again.