Skip to content

copy directories/files per function #425

@jamesdixon

Description

@jamesdixon

This is a (Bug Report / Feature Proposal)

Question

Description

Hi, is there a way to copy additional directories on a per-function basis? For example, I have a createEmail function located at lib/createEmail that also has a templates directory. I need that copied with the function, but it doesn't copy. However, I also don't want that directory copied to other functions that live in the same project.

Thank you!

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.
  • If there is additional config how would it look

Similar or dependent issue(s):

  • #12345

Additional Data

  • Serverless-Webpack Version you're using:
    5.2.0
  • Webpack version you're using:
    4.16
  • Serverless Framework Version you're using:
    1.28
  • Operating System:
    OSX High Sierra
  • Stack Trace (if available):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions