Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow script execution and management via packagerOptions #343
This is a Feature Proposal
Currently the webpack plugin does not allow for custom scripts to be executed while packaging the functions/service. The packager part creates a small package.json that only contains the dependencies to make sure that they are bundled correctly.
Issues like #342 show, that there are cases where invoking a script after the packager install might be needed.
A possible approach would be to add a list of inline scripts as
Sample for the referenced issue:
# serverless.yml custom: webpack: packagerOptions: scripts: - npm rebuild grpc --target=6.1.0 --target_arch=x64 --target_platform=linux
Similar or dependent issue(s):
Also, as I was doing research for on this issue, I spent a lot of time going through the Webpack documentation. Is this really a Webpack or serverless-webpack issue, or does it not matter?