stylus-versioned-urls
Stylus plugin to version urls in built css.
This plugin doesn't generate versioned urls, it assumes you've already done that. It takes a map of unversioned to versioned urls and translates unversioned urls in the stylus source to versioned urls in the css output.
Installation
npm install stylus-versioned-urls
Usage
var stylus = versionedUrls = versions = '/fonts/sans.woff': '/fonts/sans.123.woff' '/fonts/serif.woff': '/fonts/serif.456.woff' ;
With Grunt
Combine with grunt-contrib-stylus and grunt-assets-versioning to version and build CSS:
var stylusVersionedUrls = gruntgruntgrunt grunt grunt grunt