Skip to content

Suggested: Have includePaths override excludePatterns #50

@matthewbga

Description

@matthewbga

With the goal in mind to reduce deployed package size, it would be a nice feature to be able to exclude all paths using excludePattern, then surgically select files/paths to include using includePaths.

Given the following directory structure...

/api
  /fn1
    handler.py
    s-function.json
  /fn2
    handler.py
    s-function.json
  /lib
    Notifier.py
    StackEvent.py

If /api/fn1/s-function.json has...

 "custom": {
    "optimize": true,
    "includePaths": []
 }

I still find /fn2/* and /lib/* in the deployment package (.zip).

As I understand the intent of this plugin is to remove those two additional directories. It's possible/likely I am missing something. I have reviewed other issues, like #48, etc.

Thanks all! This is good work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions