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

plugin order #38

Open
AGiantSquid opened this issue Dec 21, 2022 · 1 comment
Open

plugin order #38

AGiantSquid opened this issue Dec 21, 2022 · 1 comment

Comments

@AGiantSquid
Copy link

AGiantSquid commented Dec 21, 2022

Hello, I tried using this plugin in combination with serverless-plugin-ifelse. I tried ordering this plugin ahead of serverless-plugin-ifelse hoping that this plugin would run first. It looks like the ifelse plugin will always be called first, however, because it uses the "before:package:initialize" hook, while the for-each plugin uses the 'after:package:initialize' hook. When I changed the for-each hook to use before, I was able to get the ifelse and for-each plugin to run in the order I wanted.

Is there a good reason to leave the for-each hook at 'after:package:initialize' ? I can fork the project and change it for my own needs, but I'm thinking it might play nicer with other plugins if the hook is changed.

@AntonBazhal
Copy link
Contributor

Hello, honestly I do not remember whether there was a reason. I can try playing with that in a couple of projects and see if it causes any issues.

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

2 participants