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

Access configuration flag in custom-esbuild plugin #1710

Open
RaulPROP opened this issue Mar 7, 2024 · 0 comments
Open

Access configuration flag in custom-esbuild plugin #1710

RaulPROP opened this issue Mar 7, 2024 · 0 comments

Comments

@RaulPROP
Copy link

RaulPROP commented Mar 7, 2024

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

Describe the solution you'd like
I'd love to be able to access the configuration string (like in custom-webpack with the targetOptions.configuration) in the esbuild plugins and indexHtmlTransformer (i.e.: the --configuration flag).

Describe alternatives you've considered
The only alternative that I see is overriding the plugins and indexHtmlTransformer for each configuration (i.e.: having a plugin-development.ts, plugin-production.ts, etc).

Additional context
I guess this is related to #1661 in some way.

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

1 participant