Skip to content

Instantly share code, notes, and snippets.

@fxg42
Last active December 14, 2015 08:59
Show Gist options
  • Save fxg42/5061515 to your computer and use it in GitHub Desktop.
Save fxg42/5061515 to your computer and use it in GitHub Desktop.
var CoffeeScript = require('coffee-script'); // make sure that coffee-script version is >= 1.5.0
var assets = require('connect-assets')({
jsCompilers: {
litcoffee: {
match: /\.js$/,
compileSync: function (sourcePath, source) {
return CoffeeScript.compile(source, { filename: sourcePath, literate: true });
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment