Permalink
Browse files

Fix #17.

Caused by uppercase characters being used for the "name" property
of the precompilers.
  • Loading branch information...
1 parent 6e8f20e commit c0063649b8f38cb6cf58376f7e50e0cfe497a3ea @hughsk hughsk committed Dec 13, 2012
Showing with 6 additions and 5 deletions.
  1. +3 −2 bin/kss-node
  2. +1 −1 lib/precompilers/less.js
  3. +1 −1 lib/precompilers/sass.js
  4. +1 −1 lib/precompilers/stylus.js
View
@@ -215,12 +215,13 @@ generateStylesheet = function(argv) {
Object.keys(compilers).forEach(function(name) {
if (compilers[name].extensions.indexOf(extension) !== -1) type = name
})
- type = type || 'CSS'
+ type = type || 'css'
}
+ type = type.toLowerCase()
console.log(' - ' + filename + ' (' + type + ')')
- if (type === 'CSS') return next(null, fs.readFileSync(filename, 'utf8'))
+ if (type === 'css') return next(null, fs.readFileSync(filename, 'utf8'))
compilers[type].render(filename, next)
}, function(err, output) {
View
@@ -3,7 +3,7 @@ var fs = require('fs'),
lessCompile = module.exports = {};
// Name of the stylesheet language
-lessCompile.name = 'LESS';
+lessCompile.name = 'less';
// File extension for that language
lessCompile.extensions = ['less'];
View
@@ -3,7 +3,7 @@ var fs = require('fs'),
sassCompile = module.exports = {};
// Name of the stylesheet language
-sassCompile.name = 'SASS';
+sassCompile.name = 'sass';
// File extension for that language
sassCompile.extensions = ['sass'];
@@ -3,7 +3,7 @@ var fs = require('fs'),
stylusCompile = module.exports = {};
// Name of the stylesheet language
-stylusCompile.name = 'Stylus';
+stylusCompile.name = 'stylus';
// File extension for that language
stylusCompile.extensions = ['styl', 'stylus'];

0 comments on commit c006364

Please sign in to comment.