From a680110480238f4af043909a3030753ce9d026d8 Mon Sep 17 00:00:00 2001 From: Josh Gillies Date: Thu, 4 Jun 2015 13:11:09 +1000 Subject: [PATCH 1/2] Update through stream to ignore source data. We don't do anything with the source css, so no use capturing it. --- lib/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/index.js b/lib/index.js index 33caf3b..a6ee90c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9,11 +9,7 @@ module.exports = function (filename) { return through(); } - var data = []; - return through(function onData (chunk) { - data.push(chunk); - }, function end () { - var raw = data.join(''); + return through(function noop () {}, function end () { var self = this; var loader = new FileSystemLoader(path.dirname(filename)); From 1ff568ee7349f64d299bc9e90cc32b32f7eaf091 Mon Sep 17 00:00:00 2001 From: Josh Gillies Date: Thu, 4 Jun 2015 13:16:08 +1000 Subject: [PATCH 2/2] Add browserify as dev dependency --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 17c3088..988516e 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "through": "^2.3.7" }, "devDependencies": { + "browserify": "^10.2.3", "gh-pages": "^0.3.0", "hyperscript": "^1.4.6", "insert-css": "^0.2.0"