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

Request: Remove the Warning about --production #6698

Closed
bdkjones opened this issue Aug 8, 2023 · 1 comment
Closed

Request: Remove the Warning about --production #6698

bdkjones opened this issue Aug 8, 2023 · 1 comment

Comments

@bdkjones
Copy link

bdkjones commented Aug 8, 2023

This is a simple feature request (hence the lack of issue template). See this screenshot:

Screenshot 2023-08-07 at 22 20 06

The Problem:

--production is dead-simple for humans to remember. --omit=dev, by contrast, is awful for humans. Every time I have to type the command I think, "What's that gobbledegook they changed '--production' to again? Eh, whatever, the old way works fine."

The Fix:

Just get rid of the CLI warning and let --production be an official alias for --omit=dev. The canonical build environments since the dawn of computers have been production and development, so it makes sense to recognize these as official aliases. For other, more nuanced environments, the --omit= parameter provides fine-grained control.

@kchindam-infy
Copy link

Thank you for the suggestion, According to github guidelines, new feature and suggestions are discussed in the npm feedback forum. Recommended to open a discussion in the npm feedback forum. You can visit here https://github.com/npm/feedback/discussions

@milaninfy milaninfy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
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

No branches or pull requests

3 participants