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

Question about how to override template parameter during webpack building #78

Open
ranmocy opened this issue Aug 16, 2022 · 2 comments
Open
Labels
question Further information is requested

Comments

@ranmocy
Copy link

ranmocy commented Aug 16, 2022

I'm trying to conditionally declare entry point based on the different template parameter (dev,beta,prod).
It should affect the output of webpack since the build is based on the entry points declared in the template.

How does the plugin resolve the entry points in the templates? What value will be used for those parameters?

@buggy buggy added the question Further information is requested label Aug 27, 2022
@buggy
Copy link
Collaborator

buggy commented Aug 27, 2022

The plugin looks for AWS::Serverless::Function resources in your SAM template then uses the configured entry point for the function.

@OscarJVD
Copy link

OscarJVD commented Apr 28, 2024

The plugin looks for AWS::Serverless::Function resources in your SAM template then uses the configured entry point for the function.

And hoy you managed to build correctly when the lambda entry point app.ts has more files and folders at the same level of app.ts. How would be the webpack.config? Because I´ve the problem that only generates the build of app.ts in the correct path but the rest of the files are generated in the root outside of .aws-sam folder. Help
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants