Skip to content

Instantly share code, notes, and snippets.

@shimar
Last active August 29, 2015 14:01
Show Gist options
  • Save shimar/de4df3ccd8162c70d96b to your computer and use it in GitHub Desktop.
Save shimar/de4df3ccd8162c70d96b to your computer and use it in GitHub Desktop.
using connect-assets on node.js + express.js
var connectAssets = require('connect-assets');
app.use(connectAssets({
paths: [path.join(__dirname, 'assets/js'),
path.join(__dirname, 'assets/css'),
path.join(__dirname, 'components')],
buildDir: 'public/assets'
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment