Skip to content

Commit 801185e

Browse files
committed
feat(gulp:inject:styleExt): remove file extensions from injected import string
1 parent 05ee5c9 commit 801185e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/templates/gulpfile.babel(gulp).js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ gulp.task('inject:<%= styleExt %>', () => {
169169
let newPath = filepath
170170
.replace('/client/app/', '')
171171
.replace('/client/components/', '../components/')
172-
.replace(/_(.*).<%= styleExt %>/, (match, p1, offset, string) => p1);
172+
.replace(/_(.*).<%= styleExt %>/, (match, p1, offset, string) => p1)
173+
.replace('.<%= styleExt %>', '');
173174
return '@import \'' + newPath + '\';';
174175
}
175176
}))

0 commit comments

Comments
 (0)