1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1 1 14 13 13 1 | /* Copyright (c) 2012, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://yuilibrary.com/license/ */ var cssproc = require('cssproc'); exports.cssproc = function (options, blob, done) { if (options.url) { cssproc.parse({ root: options.root, path: options.file, base: options.url }, blob.result, function(err, str) { done(null, new blob.constructor(str, blob)); }); } else { done(null, new blob.constructor(blob.result, blob)); } }; |