Skip to content

Commit 37d6c46

Browse files
studentIvanAwk34
authored andcommitted
fix(gen): fix Stylus & Sass extensions
closes #1609
1 parent 8a1e9c3 commit 37d6c46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/generator.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ export default class Generator extends Base {
144144

145145
this.scriptExt = answers.transpiler === 'ts' ? 'ts' : 'js';
146146
this.templateExt = answers.markup;
147-
this.styleExt = answers.stylesheet === 'sass' ? 'scss' : answers.stylesheet;
147+
148+
var styleExt = {sass: 'scss', stylus: 'styl'}[answers.stylesheet];
149+
this.styleExt = styleExt ? styleExt : answers.stylesheet;
148150

149151
cb();
150152
}.bind(this));

0 commit comments

Comments
 (0)