Use corresponding stylesheet depending on config variable

This commit is contained in:
ColCh
2014-11-02 12:22:28 +03:00
parent 88d79d2ec2
commit ac43179354
4 changed files with 19 additions and 0 deletions
+12
View File
@@ -38,6 +38,18 @@ var Generator = module.exports = function Generator() {
this.stylesSuffix = '.css';
switch(this.config.get('styles-language')) {
case 'sass':
this.stylesSuffix = '.sass';
break;
case 'less':
this.stylesSuffix = '.less';
break;
case 'stylus':
this.stylesSuffix = '.styl';
break;
}
this.sourceRoot(path.join(__dirname, sourceRoot));
};
+3
View File
@@ -0,0 +1,3 @@
.<%= classedName %>{
border: 1px dashed #f00;
}
+2
View File
@@ -0,0 +1,2 @@
.<%= classedName %>
border: 1px dashed #f00
+2
View File
@@ -0,0 +1,2 @@
.<%= classedName %>
border 1px dashed #f00