Skip to content

Conversation

rubenvereecken
Copy link

Add all css files to the css injector, for some reason the hardcoded glob wouldn't work but I instead used the predefined one. All css files now also undergo the 'styles' pipe.

The problem this fixes is that only app.css used to be loaded, because it was the only one injected into index.html.

@@ -294,7 +294,7 @@ gulp.task('tsd:test', cb => {
});<% } %>

gulp.task('styles', () => {
return gulp.src(paths.client.mainStyle)
return gulp.src(paths.client.styles)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want this change. The 'styles' task should only used if you pick a CSS transpiler

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you propose an alternative fix to the problem I reported?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<%_ if(!filters.css) { _%>
return gulp.src(paths.client.mainStyle)
<%_ } else { _%>
return gulp.src(paths.client.styles)<% } %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants