Dependency CSS to SCSS

I suppose this might be a bit of an edge case, but it happens often enough that I’m digging in this weekend.

There are still many bower components that don’t use scss. That means that their css files aren’t being added into the stylesheet via wiredep. My workaround so far has been manual, with a postinstall script to rename the file and adding the override by hand to my bower.json file. But sometimes there are several, and it simply takes too long…

It isn’t enough to just @include the css file in main.scss as that doesn’t inline the css, what’s needed is to rename the file to _file.scss, then @import that.

So, is there a way that the gulpfile/wiredep/asset-builder can be used to check the extension of a dependency’s main files, and if they are css, do the simple rename?