Skip to content

feat: add skipInternalWarnings flag to avoid console.warn output#293

Merged
maltsev merged 1 commit intomaltsev:masterfrom
aaarichter:feat/disable-internal-warnings
Apr 25, 2025
Merged

feat: add skipInternalWarnings flag to avoid console.warn output#293
maltsev merged 1 commit intomaltsev:masterfrom
aaarichter:feat/disable-internal-warnings

Conversation

@aaarichter
Copy link
Copy Markdown

motivation:

I'm using htmlnano with AWS Lambda, where the console.warn shows in unit tests and AWS cloudwatch. To suppress them, an optional flag is required

Copy link
Copy Markdown
Contributor

@SukkaW SukkaW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This option would also be helpful for other integrations (E.g. parcel)

@maltsev maltsev merged commit 6419bf1 into maltsev:master Apr 25, 2025
@maltsev
Copy link
Copy Markdown
Owner

maltsev commented Apr 25, 2025

Sorry for the delay! Somehow, I totally missed this PR.

@maltsev
Copy link
Copy Markdown
Owner

maltsev commented Apr 25, 2025

Will try to publish a new htmlnano version in the coming days.

@maltsev
Copy link
Copy Markdown
Owner

maltsev commented Apr 30, 2025

I've released a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants