index.js 367 B

12345678910111213141516
  1. module.exports = GlagolStylus;
  2. function GlagolStylus (options) {
  3. return require('xtend')(require('glagol/formats/plaintext'),
  4. { compile: compile
  5. , name: 'Stylus'
  6. , target: 'plaintext' // TODO CSS target with browserify css
  7. });
  8. function compile (file) {
  9. return require('stylus').render(file.source, { filename: file._sourcePath });
  10. }
  11. }