Skip to content

Commit

Permalink
fix(gen): fix Stylus & Sass extensions
Browse files Browse the repository at this point in the history
closes #1609
  • Loading branch information
studentIvan authored and Awk34 committed Feb 19, 2016
1 parent 8a1e9c3 commit 37d6c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ export default class Generator extends Base {

this.scriptExt = answers.transpiler === 'ts' ? 'ts' : 'js';
this.templateExt = answers.markup;
this.styleExt = answers.stylesheet === 'sass' ? 'scss' : answers.stylesheet;

var styleExt = {sass: 'scss', stylus: 'styl'}[answers.stylesheet];
this.styleExt = styleExt ? styleExt : answers.stylesheet;

cb();
}.bind(this));
Expand Down

0 comments on commit 37d6c46

Please sign in to comment.