From c0c51ad2376a42a34ffe26f669de1b98d304e821 Mon Sep 17 00:00:00 2001 From: drugan Date: Sat, 13 May 2017 18:17:23 +0300 Subject: [PATCH] Require "csscomb": "^4.0.1" as a devDependencies --- index.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 7b86f26..97f7bd1 100644 --- a/index.js +++ b/index.js @@ -62,12 +62,14 @@ function Plugin(configPath, options) { var syntax = options.syntax || file.path.split('.').pop(); try { - var output = comb.processString( + var promisedOutput = comb.processString( file.contents.toString('utf8'), { syntax: syntax, filename: file.path }); - file.contents = new Buffer(output); + promisedOutput.then(processedString => { + file.contents = new Buffer(processedString); + }); } catch (err) { this.emit('error', new PluginError(PLUGIN_NAME, file.path + '\n' + err)); } diff --git a/package.json b/package.json index aade2b9..2459b29 100644 --- a/package.json +++ b/package.json @@ -28,11 +28,11 @@ "index.js" ], "dependencies": { - "csscomb": "^3.1.7", "gulp-util": "^3.0.7", "through2": "^2.0.1" }, "devDependencies": { + "csscomb": "^4.0.1", "jshint": "^2.9.3", "mocha": "^3.0.2" },