Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed list bug and added import support for stylus

  • Loading branch information...
commit ae8674b2785d904c3542e3f8b5f74b7fd37202e1 1 parent eced3b2
@Qard authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/index.js
View
4 lib/index.js
@@ -20,6 +20,7 @@ function Crsh (path, list) {
var self = this
this.format = null
+ this.list = []
// Path is optional
if (typeof path !== 'string') {
@@ -35,7 +36,6 @@ function Crsh (path, list) {
// Populate list, if supplied.
if (typeof list !== 'undefined') {
- this.list = []
list.forEach(function (file) {
self.add(file)
})
@@ -128,10 +128,12 @@ Crsh.stylus = function () {
}
return function () {
+ var self = this;
this.addType('css', 'styl')
return function (file, next) {
stylus(file)
+ .set('paths', self.path)
.set('compress', isProd)
.set('filename', 'style.styl')
.render(next)
Please sign in to comment.
Something went wrong with that request. Please try again.