-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Question: hooks *after* compile – but *before* run #315
Comments
Hi @dwelch2344 , thanks for asking. This hook is wrong: In case you want to hook into some serverless lifecycle event, you always have to hook besides the offered hook. In your case this would be: The order of the plugin array in your Additionally, you can invoke Serverless with |
Hi @HyperBrain – thanks for your quick reply and (obviously) all your awesome work :) So, I'd actually tried that as well but had adjusted it from my sample plugin as I was hammering on it. Changing the example at hand to the suggested Is there another event / hook to listen to for running in offline (i.e. to see the latest source after webpack runs again, but before offline is updated) Below's my console output with debug enabled and
|
…vent control while doing local development
Sorry it took me so long to file a PR / update the issue. So, as usual, the plugin's working great and doing exactly what it should :) However, now that we know how things work, we'd like to suggest a simple enhancement. Just opened PR #319 to address what we'd like. Hopefully closing this is the right move :) |
…vent control while doing local development
…e-hook serverless-heaven#315 - Add watch-compile event
This is a Question
Description
New to plugin development, so apologies if we're missing something incredibly obvious. We're attempting to write a plugin that runs after webpack but before deploy / offline / etc, but can't seem to hit the hook. We can run after
validate
, just fine (withafter:webpack:validate:validate
)Plugin thus far is dead simple. Uncomment the validate hook to see it in action. So far the plugin is just running in
.serverless_plugins
– and is imported afterserverless-webpack
(though we've tried before as well)Are we missing something obvious? Or is there not a hook for the compilation?
Thanks
Additional Data
^4.2.0
^3.10.0
^1.25.0
Mac OS X - Sierra (scared to upgrade to High Sierra)
The text was updated successfully, but these errors were encountered: