UNPKG

igneous

Version:

Automatic asset bundling and deployment

25 lines (15 loc) 348 B
var stylus = require('stylus'); module.exports = function( file, config, callback ){ if( file.type === 'text/stylus' ){ stylus.render( file.contents, { name: file.name }, function( err, css ){ if( err ){ throw Error( err ); } callback( css ); }); } else { callback( file.contents ); } };