Permalink
Browse files

NOW it works...for real this time.

  • Loading branch information...
1 parent 2854e77 commit 67a3cee2d222ef7f14f7d861e5a3179277503f1b @Qard committed May 10, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/index.js
View
@@ -40,7 +40,9 @@ function Crsh (path, list) {
self.add(file)
})
- this.compile()
+ this.compile(function (err) {
+ if (err) { throw new Error(err) }
+ })
}
// Run the compiler when a change occurs
@@ -128,15 +130,12 @@ Crsh.stylus = function () {
}
return function () {
- var self = this;
this.addType('css', 'styl')
return function (file, filename, next) {
stylus(file)
.set('filename', filename)
- .set('paths', self.path)
.set('compress', isProd)
- .set('filename', 'style.styl')
.render(next)
}
}

0 comments on commit 67a3cee

Please sign in to comment.