Skip to content

Only generate report if detailedReport option is set - #28

Open
adamduncan wants to merge 1 commit into
gregtillbrook:masterfrom
adamduncan:feature/no-visualise-option
Open

Only generate report if detailedReport option is set#28
adamduncan wants to merge 1 commit into
gregtillbrook:masterfrom
adamduncan:feature/no-visualise-option

Conversation

@adamduncan

Copy link
Copy Markdown

Current behavior

Generate report if process.env.NODE_ENV === 'production'

Proposed behavior

As well as checking NODE_ENV, we leverage Parcel's detailedReport option to determine whether to generate a report.

This is opposite of the plugin's existing behaviour, but affords the user control of when to generate reports, without modifying existing Parcel functionality.

Conscious this would be a breaking change, but wanted to float it, given #14.

If the plugin's considering further development (or this is worth exploring), happy to write the tests, update docs, etc.

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.

1 participant