-
Notifications
You must be signed in to change notification settings - Fork 795
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: Allow to specify in CustomOuputTarget if the output have to be re-executed on each build #5514
Comments
Can you elaborate on this? When you say "at every change" are you talking about having the output target run during watch mode? Because this works for me given your example project. I guess, could you explain in detail what the current behavior is and your expected/desired behavior? |
Yes when a mean at every change, i mean in dev mode. Like i said, when i add or remove a I add some console.log in my component-config.target.ts but there only called on final build, not in dev mode. |
After running a few tests, I realized that the custom output target is never called when the Based on this result, I think the bug is related to the dev flag. |
This was closed in #5541, and that fix will be released today! |
The fix for this issue has been released as a part of today's Stencil v4.18.1 release! |
Prerequisites
Describe the Feature Request
I'd like to have a parameter that lets you choose whether the custom output target can be called at every change or only during the "final" build.
Describe the Use Case
I've created a little plugin to retrieve all
@config
docsTags in acomponent-config.d.ts
so it's easyer to customise the default state of a component.stencil.config.ts
component-config.d.ts
These options are extracted from the component, but if a modification is made to this component, the output target is not updated.
Describe Preferred Solution
Describe Alternatives
No response
Related Code
https://github.com/Sukaato/stencil-custom-target-example
Additional Information
No response
The text was updated successfully, but these errors were encountered: