Skip to content

Enhance plugin for "serverless deploy --package" use case #546

@kushanson

Description

@kushanson

This is a Feature Proposal

Description

Enhance serverless-webpack such that it does not execute any webpack tasks during "serverless deploy" when the "--package" option is present.

For bug reports:

  • What went wrong?
  • What did you expect should have happened?
  • What was the config you used?
  • What stacktrace or error message from your provider did you see?

For feature proposals:

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
    Use Case:
    serverless supports "--package" option for the "serverless deploy" command. "--package" option is used to point to an already bundled ".serverless" folder. In this case, the webpack bundling would have occurred during "serverless package" phase to generate the ".serverless" folder. Webpack bundling does not need to occur again when using "--package" option with "serverless deploy" command. It would be ideal to not have any dependency on webpack when using "--package" option since all bundling has already occurred.

  • If there is additional config how would it look
    no additional config

Similar or dependent issue(s):

Additional Data

  • Serverless-Webpack Version you're using: 5.3.1
  • Webpack version you're using: 4.41.2
  • Serverless Framework Version you're using: 1.57.0
  • Operating System: Windows 10
  • Stack Trace (if available): N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions