Git Product home page Git Product logo

Comments (6)

benhoIIand avatar benhoIIand commented on June 9, 2024
Cachebusting QA is sometimes a necessity

Your QA environment should be as close to your production environment as possible, which means running tests/QA against concatenated files. Not sure you really need this

removing the grunt-cache-bust URL fragment so it doesn't show up in the links

Great suggestion - hadn't thought about . Have created a separate ticket for this #93

from grunt-cache-bust.

kappasims avatar kappasims commented on June 9, 2024

We have a QA environment where we do not compile our handlebars templates into Javascript, but a staging environment where we do compile and concat as you describe. Cachebusting a nonexistent template Js file in our QA environment caused warnings due to it not being found. It may be that we should be compiling the templates in our QA environment as well though.

from grunt-cache-bust.

benhoIIand avatar benhoIIand commented on June 9, 2024

Okey, thanks for the clarification.

So an option such as shouldRun which is a boolean would be a good approach. That way you can check an environment variable, and if it's QA, then don't run that task.

Sound good?

from grunt-cache-bust.

benhoIIand avatar benhoIIand commented on June 9, 2024

Another work around within your setup would to have 2 grunt tasks; one for QA and one for everything else. The QA task wouldn't kick off the cacheBust task

from grunt-cache-bust.

benhoIIand avatar benhoIIand commented on June 9, 2024

I've merged a change to remove the hint fragment when the task is run - #103. I shall be closing this ticket now as the environment problem is specific to your needs and not those of the task

from grunt-cache-bust.

kappasims avatar kappasims commented on June 9, 2024

Awesome, thanks!

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.