Skip to content

Commit c619ded

Browse files
committed
Using the syntax of the given file for the detection
1 parent f4fc7b1 commit c619ded

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/csscomb.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ Comb.prototype = {
175175
processFile: function(path) {
176176
var _this = this;
177177
if (_this._detect) {
178-
return _this.processString(fs.readFileSync(path, 'utf8'), path);
178+
var syntax = path.split('.').pop();
179+
return _this.processString(fs.readFileSync(path, 'utf8'), syntax, path);
179180
}
180181
if (this._shouldProcessFile(path)) {
181182
return vfs.read(path, 'utf8').then(function(data) {

0 commit comments

Comments
 (0)