-
Notifications
You must be signed in to change notification settings - Fork 417
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
Option to not integrate with invoke #288
Comments
Hi @jawadst , thanks for opening the feature request. This option would disable the whole plugin on request (e.g. if a However, by disabling webpack on demand, I see some drawbacks:
A change in Serverless to support a generic switch looks trivial to me. I can implement it and open a PR there that references this issue. Then it would be in Serverless 1.25, or more likely 1.26. What do you think? |
Hi @HyperBrain, I agree that enabling this option makes the tests less representative. That being said, we have been doing this for a while (we usually develop with node >= 8 and run our tests that way too) without any issue so far so my take on this is that the benefits seem higher than the risk for us. I totally understand some people might disagree on that which is why I was thinking of it as an option. As for the Thanks a lot for your response and your work on this plugin, it's very helpful! |
Yes, your assumption is right - the plugin would be completely disabled. |
Souds great, thanks you very much! |
@jawadst This might be partially solved with #341. You would now do: $ serverless webpack
$ serverless invoke local --function <function-name-1> --no-build
$ serverless invoke local --function <function-name-2> --no-build However, I'm still thinking about the disabling of the compile at all, but out from the plugin I did not find a viable solution as it overrides the packaging and execution to point to the compiled code. Please let me know if this already helps you at least a bit 😄 |
This is a Feature Proposal
Description
It'd be great to have an option to not run webpack when running invoke. Locally, I test with node 8 and only need webpack/babel when deploying to Lambda.
The text was updated successfully, but these errors were encountered: