This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Run a plugin once another plugin has finished processing all the files in the transform hook? #19338
Closed
4 tasks done
Labels
Description
I'm running a plugin in the transform hook that transforms all files and gathers some intel on the CSS styles that are used in the code; based on the intel, I need to transform all the files again. But I'm not able to find a way to process all the files again with another plugin once the previous plugin has finished transforming all the files in the transform hook.
Here is the plugin: plugin, I'm transforming the files in the transform hook with plugin1 that store some data on the css object, and then once all the files are processed by plugin1, I need to transform those files that were transformed by plugin1 with plugin2. The only way I was able to do this, is in the renderChunk hook, but it doesn't get invoked with the dev server.
Pl help.
Suggested solution
It'd be helpful if we can transform the files in another hook that were transformed with the transform hook.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: