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

Console log from Inferno tool chain #1306

Open
wdhongtw opened this issue Jul 9, 2024 · 0 comments
Open

Console log from Inferno tool chain #1306

wdhongtw opened this issue Jul 9, 2024 · 0 comments
Labels
discussion Any questions about this theme.

Comments

@wdhongtw
Copy link

wdhongtw commented Jul 9, 2024

Is your feature request related to a problem? Please describe.

There is always a line Inferno is in development mode., whenever running a hexo command.

npm run build
> hexo-site@0.0.0 build
> hexo generate

INFO  Validating config
Inferno is in development mode.     <----------- This line
INFO  =======================================
 ██╗ ██████╗ █████╗ ██████╗ ██╗   ██╗███████╗
 ██║██╔════╝██╔══██╗██╔══██╗██║   ██║██╔════╝
 ██║██║     ███████║██████╔╝██║   ██║███████╗
 ██║██║     ██╔══██║██╔══██╗██║   ██║╚════██║
 ██║╚██████╗██║  ██║██║  ██║╚██████╔╝███████║
 ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝
=============================================
INFO  === Checking package dependencies ===
INFO  === Checking theme configurations ===

There is nothing wrong regarding the functionality.
It's just a little annoying, since that Inferno should be a transparent dependency for the users
relying on this hexo theme. :D

Describe the solution you'd like

Maybe we can adjust the config SKIP_INFERNO_WARNINGS when calling the utilities from Inferno.

Describe alternatives you've considered

We can also require users to set NODE_ENV=production by theirselves
But personally I thought the default behavior should be turning this log off for users.

Additional context

Related upstream thread: infernojs/inferno#1573

@ppoffice ppoffice added feature:general Feature request that affects this theme in general. discussion Any questions about this theme. and removed feature:general Feature request that affects this theme in general. labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Any questions about this theme.
Projects
None yet
Development

No branches or pull requests

2 participants