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

feat: cli arg to disable minification #89

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Conversation

james-elicx
Copy link
Collaborator

Introduces a CLI arg to let people choose to disable minification (e.g. for debugging purposes).

Only applies to the cache handler at the moment as that's the only part being minified currently.

Copy link

changeset-bot bot commented Oct 10, 2024

🦋 Changeset detected

Latest commit: 2f5cb03

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@james-elicx james-elicx changed the title refactor: pass config to build function feat: cli arg to disable minification Oct 10, 2024
Copy link

pkg-pr-new bot commented Oct 10, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@89

commit: 2f5cb03

@james-elicx james-elicx force-pushed the james/minification-option branch from bb5fd4a to 0f67650 Compare October 11, 2024 07:01
Base automatically changed from james/refactor-config-build to main October 11, 2024 07:05
@james-elicx james-elicx force-pushed the james/minification-option branch from 0f67650 to 0ad33df Compare October 11, 2024 07:11
@james-elicx james-elicx marked this pull request as ready for review October 11, 2024 07:15
@james-elicx james-elicx requested a review from vicb October 11, 2024 07:15
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

Nice change, see the inline comment

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

Looks good with a few minor comments

@james-elicx james-elicx merged commit 6acf0fd into main Oct 11, 2024
7 checks passed
@james-elicx james-elicx deleted the james/minification-option branch October 11, 2024 14:23
@vicb
Copy link
Contributor

vicb commented Oct 11, 2024

Thanks a lot for updating the code @james-elicx.

Sorry to bother you with nit-picks but I think it's goos to start to improve things little by little.

@james-elicx
Copy link
Collaborator Author

Sorry to bother you with nit-picks

It's no worries at all, I don't mind it

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.

2 participants