Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
module.exports = (grunt) ->
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)
grunt.cacheMap = []
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
bushcaster:
options:
hashLength: 8
noProcess: true
onComplete: (map, files) ->
files.forEach((file)->
grunt.cacheMap.push(
pattern: file
replacement: map[file]
)
)
main:
files: [
expand: true
cwd: "./"
src: ["assets/mq-base.css", "assets/favicon.ico"] #files to cache bust.
dest: "./"
]
'string-replace':
dist:
files:
'build/': '*.html' # dest: source
options:
replacements: grunt.cacheMap
grunt.registerTask "bustcache", ["bushcaster", "string-replace:dist"]