serverless-optimizer-plugin icon indicating copy to clipboard operation
serverless-optimizer-plugin copied to clipboard

What directory does 'includePaths' option start from?

Open patoncrispy opened this issue 8 years ago • 3 comments

I can't figure out what directory the 'includePaths' option is reading from. I've tried the project root and the function root, but neither seem to have any effect... :(

patoncrispy avatar Apr 21 '16 17:04 patoncrispy

have you fixed this issue. i have same issue https://github.com/serverless/serverless-optimizer-plugin/issues/48

but i able to add using hole path with filename but with folder its not working

nirmalgoswami avatar Apr 27 '16 09:04 nirmalgoswami

I think it's relative to the handler property. It also takes file names, not just directories, as a value. My handler is clips/all/handler.handler and I have my file at the same level as the clips directory and it works fine. I just put "includePaths": ["filename"], where filename is the name of my file.

patoncrispy avatar Apr 29 '16 13:04 patoncrispy

Not sure if someone with better knowledge is able to describe the feature in better detail than that, though.

patoncrispy avatar Apr 29 '16 13:04 patoncrispy