Giter VIP home page Giter VIP logo

Comments (4)

benhoIIand avatar benhoIIand commented on June 2, 2024
  1. Add an option not to check for file existence (I have a case in my project where I actually need that)

I have created a separate ticket for this

  1. Don't check tag type. Take everything that has a src or a href, e.g:

I'd rather not be checking for all href's as this will bust all elements rather than just stylesheets/favicons

e.g.

<a href="/search?term=thing">Link</a>

// Would become
<a href="/search?a52baf7sjb2b2a">Link</a>
  1. If you implement the second request then this is obsolete, but if you won't then this should be fixed:

I've created a separate ticket for this as well

Thanks for the comments. I'll leave this ticket open for a little bit incase you think of anything else, else feel free to close it :)

from grunt-cache-bust.

benhoIIand avatar benhoIIand commented on June 2, 2024

Actually, #20 is already implemented as it currently filters all scripts to check it has a src attribute

from grunt-cache-bust.

benhoIIand avatar benhoIIand commented on June 2, 2024

These are now in v0.0.10

from grunt-cache-bust.

mihhail-lapushkin avatar mihhail-lapushkin commented on June 2, 2024

Thanks for quick reply!

  1. Yeah, probably you have a point there. But I would still like to have the possibility to add my own tags for busting. Say something like:
options: {
  customTags: [ 'audio', 'link[rel="myownspecialtag"]' ]
}
  1. Another thing that I noticed is that you have a baseDir, but maybe it just makes sense to take default baseDir relative to the html file that is being processed? Because now I have to specify baseDir for each html file separately.

from grunt-cache-bust.

Related Issues (20)

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.