Skip to content

Commit e81a9c6

Browse files
committed
fix(gulp): fix css injector for vanilla css
1 parent 2ff359d commit e81a9c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/app/gulpfile.babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ gulp.task('inject:<%= styleExt %>', () => {
216216
let newPath = filepath
217217
.replace(`/${clientPath}/app/`, '')
218218
.replace(`/${clientPath}/components/`, '../components/')
219-
.replace(/_(.*).<%= styleExt %>/, (match, p1, offset, string) => p1)
220-
.replace('.<%= styleExt %>', '');
219+
.replace(/_(.*).<%= styleExt %>/, (match, p1, offset, string) => p1)<% if(filters.css) { %>;<% } else { %>
220+
.replace('.<%= styleExt %>', '');<% } %>
221221
return `@import '${newPath}';`;
222222
}
223223
}))

0 commit comments

Comments
 (0)