You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2026. It is now read-only.
Hi, grunt-cachebuster is a great plugin.
I have set up grunt-cachebuster for versioning and everything worked fine. But when i'm trying to add a new js file in the list, my task cannot process to the new js file i have added.
When I run my grunt "grunt cachebuster", it generate the outcome.json and add all the .js files with the hash. But when I'm adding a new js file in the list here in cachebuster.js and run the task, it does not add the new js file and the hash
Hi, grunt-cachebuster is a great plugin.
I have set up grunt-cachebuster for versioning and everything worked fine. But when i'm trying to add a new js file in the list, my task cannot process to the new js file i have added.
For example:
in my cachebuster.js
var config = require('../config');
module.exports = {
build: {
options: {
banner: '<%= meta.custom_banner %>',
format: 'json'
},
files: {
'destination_path/outcome.json' : [
'source_path/jsfile1.js',
'source_path/jsfile2.js',
'source_path/jsfile3.js'
]
}
}
};
outcome.json:
{"source_path/jsfile1.js":"eefde8d058e6991e8f7b4dc8f3d7becb","source_path/jsfile2.js":"6a188e8c52885cbc5070e571d42147b9","source_path/jsfile3.js":"accb54664f7184cd0e6e7fdfc86e5243"}
When I run my grunt "grunt cachebuster", it generate the outcome.json and add all the .js files with the hash. But when I'm adding a new js file in the list here in cachebuster.js and run the task, it does not add the new js file and the hash