This is exactly what I have done with Gulp Client Assets.
Gulp Client Assets is a simple library that configures gulp to easily manage your client assets.
Its configuration is quite simple: Just tell it which stylesheets and scripts you use on your website, and how these should be built, and Gulp Client Assets will create the appropriate gulp tasks.
You can either use the
build task to build your assets for production, or the
watch task to monitor and build your assets during development.
Gulp Client Assets also features a
This task makes copies of your finished assets, which then get a checksum of their contents in their filename.
This is very useful for cache busting purposes.
Since every change you make will lead to a new file with a new file name, you will never have to worry about browser cache again.
The freeze task will also make a file called
manifest.json, which will contain a mapping from your assets to their counterparts with checksums in their names.
Hopefully other people will find this tool as useful as I have found it.