|
1 | 1 | # grunt-cache-killer
|
2 | 2 |
|
3 |
| -[](https://www.npmjs.com/package/grunt-cache-killer?activeTab=versions)    |
| 3 | +[](https://nodejs.org/en/) [](https://gruntjs.com/) |
| 4 | + |
| 5 | +[](https://www.npmjs.com/package/grunt-cache-killer?activeTab=versions)    |
4 | 6 |
|
5 | 7 | [](https://github.com/midnight-coding/grunt-cache-killer/releases) [](https://github.com/midnight-coding/grunt-cache-killer/blob/master/LICENSE-MIT)  [](https://github.com/midnight-coding/grunt-cache-killer/milestones?state=open) [](https://github.com/midnight-coding/grunt-cache-killer/milestones?state=closed)
|
6 | 8 |
|
@@ -109,7 +111,7 @@ grunt.initConfig({
|
109 | 111 | - `length` (number) - A number value that is used to set the length of the mask. The default value is `-1`.
|
110 | 112 | - If the value of the number is negative (eg: `-1`) then the length of the given / generated string remains unchanged.
|
111 | 113 | - If the value of the number if positive (eg: `8`) then only that value of right-hand characters in the string will remain.
|
112 |
| - - If the value of the number is zero (eg: `0`) then the mask string (excluding the prepend and append strings) is not used. (ps: Considering the primary function of cacheKiller is to place masks within filenames, use of this value would be redundant exercise). |
| 114 | + - If the value of the number is zero (eg: `0`) then the mask string (excluding the prepend and append strings) is not used. (ps: Considering the primary function of cacheKiller is to place masks within filenames, use of this value would be a redundant exercise). |
113 | 115 |
|
114 | 116 | ### Usage
|
115 | 117 |
|
@@ -144,7 +146,7 @@ Implementation is simple. Within the cacheKiller's `files:` node, place the `[m
|
144 | 146 | 3. Within the cacheKiller task, move the asset filenames `[mask]` placeholder to it's new position.
|
145 | 147 | 4. Run the cacheKiller task.
|
146 | 148 |
|
147 |
| -- Do not rename the asset filename if you have already run cacheKiller against that asset filename. Doing so will show you an error message and terminate the script.<br><br> |
| 149 | +- Do not rename any fixed parts of the asset filename (ie: Parts outside the `[mask]` placeholder) if you have already run cacheKiller against that asset filename. Doing so will show you a 'file not found' error message and terminate the script.<br><br> |
148 | 150 | If you need to retrospectively rename the asset filename, follow the below listed steps.
|
149 | 151 | 1. Rename the asset filename to your new filename. eg: `new.website.min.css`.
|
150 | 152 | 2. Update any and all references to the asset filename within the template file(s) using your new filename. eg: `new.website.min.css`.
|
|
0 commit comments