Skip to content

Specify file patterns to be removed from module dependencies #427

@nbransby

Description

@nbransby

This is a Feature Proposal

Description

Is it possible to specify file patterns to be removed from module dependencies on individual packaging? Switching to yarn has already considerably decreased my zip size (thank you for that) but I have a number of node modules I am using that include a large amount of files that are not actually needed.

For example punycode2 does not .npmignore its test folder which houses 15mb of test data. My current solution (workaround) is to delete these files from the yarn cache which means wherever they are installed those files are not present but obviously that is not a very portable solution.

Additional Data

  • Serverless-Webpack Version you're using: 5.2.0
  • Webpack version you're using: 4.16.0
  • Serverless Framework Version you're using: 1.28.0
  • Operating System: Windows 10
  • 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