Enhance serverless-webpack such that it does not execute any webpack tasks during "serverless deploy" when the "--package" option is present.
For bug reports:
For feature proposals:
Similar or dependent issue(s):
@kushanson this sounds like a logical extension of the --no-build functionality I am working on in #504. If I understand correctly, you are suggesting:
deploy --no-build will not re-run any Webpack tasks, but will still generate CloudFormation etc. (at least when using the AWS provider) in the .serverless directory.deploy --package will instruct serverless-webpack not to run any Webpack tasks, and Serverless will use existing output in .serverless.This sounds like #504 is merged this should be fairly simple to implement by extending the plugin to not re-run Webpack tasks if the --package flag is present.
I think it is worth keeping the --no-build flag as an option as this serves a separate use case.
@jamesmbourne you understand correctly. What you commented sounds good to me.
Most helpful comment
@kushanson this sounds like a logical extension of the
--no-buildfunctionality I am working on in #504. If I understand correctly, you are suggesting:deploy --no-buildwill not re-run any Webpack tasks, but will still generate CloudFormation etc. (at least when using the AWS provider) in the .serverless directory.deploy --packagewill instructserverless-webpacknot to run any Webpack tasks, and Serverless will use existing output in.serverless.This sounds like #504 is merged this should be fairly simple to implement by extending the plugin to not re-run Webpack tasks if the
--packageflag is present.I think it is worth keeping the
--no-buildflag as an option as this serves a separate use case.