gulp-combine-media-queries
gulp-combine-media-queries copied to clipboard
doesn't work with last version sass
TypeError: must start with number, buffer, array or string
Hey,
I was having this problem too after a big update of everything.
Turns out it was my upgrade of node.js
I downloaded the latest node 4.0.0 from 2.3.4. After reverting back it works again
https://nodejs.org/en/download/releases/
windows 10 [bootcamp]
+1
The problem is in gulp-combine-media-queries/index.js line 152. Here is the code:
file.contents = new Buffer(cssJson);
If I comment that line out then it seems to work fine again. The contents of cssJson look like:
{ type: 'stylesheet',
stylesheet:
{ rules:
[ [Object],
[Object],
[Object],
[Object]
]
}
}
Thanks. Hope the author will do to fix in next commit.
The author hasn't been active on Github for about a year, so I wouldn't expect fixes any time soon!
Can you make a fork with the fix?)
I forked it https://www.npmjs.com/package/gulp-merge-media-queries
Looks like no-one is updating/fixing this issue, I prefer to use: Gulp Merge Media Queries https://www.npmjs.com/package/gulp-merge-media-queries