Giter Site home page Giter Site logo

Comments (5)

alexo avatar alexo commented on September 28, 2024

This one is tricky :)

from wro4j.

muffl0n avatar muffl0n commented on September 28, 2024

Thanks go out to my coworker who stresses wro4j with cascaded imports as if there were no tomorrow. :)

The only reason it works on the first run seems to be that the directory "generated2" does not exist. See ro.isdc.wro.maven.plugin.Wro4jMojo.isIncrementalCheckRequired():

@Override
  protected boolean isIncrementalCheckRequired() {
    return super.isIncrementalCheckRequired() && destinationFolder.exists();
  }

from wro4j.

alexo avatar alexo commented on September 28, 2024

A possible solution could be holding a storage per group (which is expensive), or treating import statements differently when dealing with change detection...

from wro4j.

muffl0n avatar muffl0n commented on September 28, 2024

My first idea was to store the hashes not only by path

/scss/header.scss=77141eb86ceb6a88beabe40d81fd1a65b5ce9e64

but also by group

base:/scss/header.scss=77141eb86ceb6a88beabe40d81fd1a65b5ce9e64
base2:/scss/header.scss=77141eb86ceb6a88beabe40d81fd1a65b5ce9e64

But I'm not sure if this is a good solution.

from wro4j.

alexo avatar alexo commented on September 28, 2024

This is similar to have storage per group. The disadvantage is that there will be multiple checks for change for the same resource when it is referred from different groups.

I would prefer not checking twice for change. Instead of keeping a Map<String, Boolean> (<uri>, <change flag>), to keep Map<String, Map<String, Boolean> (where map holds the flag for each group).

from wro4j.

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.