GithubHelp home page GithubHelp logo

grunt-cachebuster's People

Contributors

felthy avatar lstrojny avatar michaellopez avatar thatmarvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grunt-cachebuster's Issues

Issue when add new js files

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

Force UNIX style paths

I think this is a great plugin but I am unfortunately running it on windows, which means all the paths come out with backslashes instead of forward slashes. This doesn't mesh well with the codebase running on a linux server and trying to join those paths up.
I've 'solved' this issue for myself by using a complete function but it would be much nicer/cleaner if there was an option to force forward-slash paths.
Any chance of this being added?

Cheers

Does not output to a file

cachebuster: { files: { 'build/cachebusters.json': ['index.html'] } },
I have this config in my Gruntfile.js.
The output when I run this task is:

Running "cachebuster:files" (cachebuster) task
Done, without errors.

But no file cachebusters.json is present.

Any tips?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.