Skip to content

Commit 6e59229

Browse files
committed
fix(gen): set scriptExt, templateExt, & styleExt when re-using a .yo-rc.json
1 parent 9f2c5d8 commit 6e59229

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: app/generator.js

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ export default class Generator extends Base {
6363

6464
if (this.skipConfig) {
6565
this.filters = existingFilters;
66+
67+
this.scriptExt = this.filters.ts ? 'ts' : 'js';
68+
this.templateExt = this.filters.jade ? 'jade' : 'html';
69+
this.styleExt = this.filters.sass ? 'scss' :
70+
this.filters.less ? 'less' :
71+
this.filters.stylus ? 'styl' :
72+
'css';
6673
} else {
6774
this.filters = {};
6875
this.forceConfig = true;

0 commit comments

Comments
 (0)