From 11e0d64efb2f33b10538fa076b90584efd342af7 Mon Sep 17 00:00:00 2001 From: srgv Date: Thu, 4 Feb 2016 22:09:10 +0500 Subject: [PATCH] fix stylus includes --- app/generator.js | 4 +++- app/templates/client/app/app(stylus).styl | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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)); diff --git a/app/templates/client/app/app(stylus).styl b/app/templates/client/app/app(stylus).styl index de156ca97..ffb293544 100644 --- a/app/templates/client/app/app(stylus).styl +++ b/app/templates/client/app/app(stylus).styl @@ -45,7 +45,6 @@ <% } %> // Component styles are injected through grunt // injector -@import "account/login/login" @import "admin/admin" @import "main/main" // endinjector