@@ -35,13 +35,15 @@ In your project's Gruntfile, add a section named `cacheKiller` to the data objec
35
35
``` js
36
36
grunt .initConfig ({
37
37
cacheKiller: {
38
- taskName : {
38
+ options : {
39
39
// Options
40
40
},
41
- files: {
42
- // Asset filename : // Template filename(s)
43
- },
44
- },
41
+ taskName: {
42
+ files: {
43
+ ' asset/path/filename.css' : [' template/path/filename-1.html' , ' template/path/filename-2.html' ]
44
+ }
45
+ }
46
+ }
45
47
});
46
48
```
47
49
@@ -78,18 +80,18 @@ In this example, the default options are used.
78
80
``` js
79
81
grunt .initConfig ({
80
82
cacheKiller: {
83
+ options: {
84
+ prepend: ' ' ,
85
+ append: ' ' ,
86
+ mask: ' {md5}' ,
87
+ length: - 1
88
+ },
81
89
taskName: {
82
- options: {
83
- prepend: ' ' ,
84
- append: ' ' ,
85
- mask: ' {md5}' ,
86
- length: - 1
87
- },
88
90
files: {
89
- ' public/css/app[mask].min.css' : ' app/views/templates/master.html' ,
90
- },
91
- },
92
- },
91
+ ' public/css/app[mask].min.css' : [ ' app/views/templates/master.html' ]
92
+ }
93
+ }
94
+ }
93
95
});
94
96
```
95
97
@@ -128,19 +130,19 @@ In this example, custom options are used
128
130
``` js
129
131
grunt .initConfig ({
130
132
cacheKiller: {
133
+ options: {
134
+ prepend: ' -' ,
135
+ append: ' .dev' ,
136
+ mask: ' {md5}' ,
137
+ length: 8
138
+ },
131
139
taskName: {
132
- options: {
133
- prepend: ' -' ,
134
- append: ' .dev' ,
135
- mask: ' {md5}' ,
136
- length: 8
137
- },
138
140
files: {
139
- ' public/css/app[mask].min.css' : ' app/views/templates/master.html' ,
140
- ' public/js/app[mask].min.js' : ' app/views/templates/master.html'
141
- },
142
- },
143
- },
141
+ ' public/css/app[mask].min.css' : [ ' app/views/templates/master.html' ] ,
142
+ ' public/js/app[mask].min.js' : [ ' app/views/templates/master.html' ]
143
+ }
144
+ }
145
+ }
144
146
});
145
147
```
146
148
@@ -182,6 +184,8 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
182
184
183
185
## Release History
184
186
185
- | Date | Version | Comments |
186
- | :--------: | :-----: | :---------------|
187
- | 01-03-2019 | 1.0.0 | Initial commit. |
187
+ | Date | Version | Comments |
188
+ | :--------: | :-----: | :-------------------------------------------|
189
+ | 01-03-2019 | 1.0.0 | Initial commit. |
190
+ | 14-03-2019 | 1.0.1 | Fixed incorrect counter reference in loop. |
191
+ | | | Updated README.md reflecting correct usage. |
0 commit comments