juanjoDiaz / serverless-plugin-warmup

Keep your lambdas warm during winter. ♨
MIT License
1.11k stars 115 forks source link

Not working with Serverless Webpack #329

Closed alienself closed 2 years ago

alienself commented 2 years ago

Hi,

Great plugin, I would love to use it in my project however I am having an issue when using serverless-webpack (https://github.com/serverless-heaven/serverless-webpack). I am using typescript and therefore needs serverless webpack to package my project.

The warmup plugin basically create a massive zip file containing the whole project (include the typescript files and the webpack packaged zip).

Any example on how to configure both packages to work together?

Thanks!

juanjoDiaz commented 2 years ago

Hi @alienself ,

Simply declare the warmup plugin after the webpack plugin and it should work. If you have problems, please share your yaml file or some project to reproduce so I can take a look and try to help 🙂

alienself commented 2 years ago

Thanks for the quick reply! I was able to make it work by declaring the warmup plugin before the webpack plugin which solved the issue.