Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.
This repository was archived by the owner on May 4, 2026. It is now read-only.

Issue when add new js files #6

Description

@Bilkiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions