Giter Site home page Giter Site logo

Comments (4)

tpraxl avatar tpraxl commented on June 11, 2024

Found it. It's not a bug:

First and foremost: The size module uses configs.size.threshold settings for the folders to inspect. The configs.buildDir seems to be irrelevant for it.

I had a typo (treshold instead of threshold) in my real life project and no configs.size.threshold setting at all in my reduced "project" tests and in the examples to reproduce the issue.

That made the size module fall back to the default values (child folders of build).

So I made the mistake. But it was extremely hard to spot. I needed to debug the code to find that using trial and error.

Makes me wonder if you should add a --debug flag that prints out things like (using default values for config.size.threshold) or (you have unrecognized config values in your yml: …). Not sure though, if this would be worth the effort.

Anyways. At least, the size module should yell when there are configured folders that don't exist.

from gimbal.

grgur avatar grgur commented on June 11, 2024

Thank you for reporting this @tpraxl. I can see opportunities for improving the docs, too. Contributions welcome (hint, hint 😄)

from gimbal.

mitchellsimoens avatar mitchellsimoens commented on June 11, 2024

FYI, part of #146 was to fix this by changing the default config to use the buildDir. I'll likely release this in a new minor version instead of just a patch but there are some other things that need to be prepped.

from gimbal.

tpraxl avatar tpraxl commented on June 11, 2024

@mitchellsimoens thanks for the update

from gimbal.

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.