From 37d6c46fcc91a9e550b1498be7049c30e6de0f2c Mon Sep 17 00:00:00 2001 From: srgv Date: Thu, 4 Feb 2016 22:09:10 +0500 Subject: [PATCH] fix(gen): fix Stylus & Sass extensions closes #1609 --- app/generator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/generator.js b/app/generator.js index 5bb5bc92d..cd5e5d1be 100644 --- a/app/generator.js +++ b/app/generator.js @@ -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));