Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--quiet=true doesn't set config.quietMode to true #3316

Closed
asbjornu opened this issue Jun 10, 2024 · 1 comment
Closed

--quiet=true doesn't set config.quietMode to true #3316

asbjornu opened this issue Jun 10, 2024 · 1 comment
Labels
bug: lite Debatable whether or not this is a bug. I mean, it’s not great but it’s not really broken either. feature: 🛠 configuration Related to Eleventy’s Configuration file

Comments

@asbjornu
Copy link

asbjornu commented Jun 10, 2024

When passing --quiet=true to the command line, config.quietMode isn't set to true. I would like to extract the value of --quiet in some of my code to silence it in development mode. How do I achieve that?

// .eleventy.js
module.exports = function (config) {
  // always prints `false` regardless of what `--quiet` is set to.
  console.log(config.quietMode);
};

I can see from #808 and 727607c that isVerbose is being set, but that property doesn't seem to be exposed in the Eleventy configuration.

@asbjornu asbjornu changed the title --quiet=true´ doesn't set config.quietMode to true` --quiet=true doesn't set config.quietMode to true Jun 10, 2024
@zachleat zachleat added this to the Eleventy 3.0.0 milestone Jun 18, 2024
@zachleat zachleat added bug: lite Debatable whether or not this is a bug. I mean, it’s not great but it’s not really broken either. and removed documentation labels Jun 18, 2024
@zachleat
Copy link
Member

Shipping with 3.0.0-alpha.14

@zachleat zachleat added the feature: 🛠 configuration Related to Eleventy’s Configuration file label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: lite Debatable whether or not this is a bug. I mean, it’s not great but it’s not really broken either. feature: 🛠 configuration Related to Eleventy’s Configuration file
Projects
None yet
Development

No branches or pull requests

2 participants