shakyShane / cache-breaker

Cache Breaking tasks
4 stars 9 forks source link

Support for multiple paths #1

Open tollus opened 9 years ago

tollus commented 9 years ago

I wanted the ability to use your grunt plugin with multiple paths with different hashes. This change adds that support without affecting the original intent.

Config snippet:

var config = {
    match: [ 'style.css', 'style2.css' ],
    replacement: 'md5',
    src: {
        path: [
            __dirname + "/../fixtures/dummy.txt",
            __dirname + "/../fixtures/dummy2.txt"
        ]
    }
};