serverless-nodejs-starter icon indicating copy to clipboard operation
serverless-nodejs-starter copied to clipboard

Adding custom files in webpack bundler

Open goldytech opened this issue 7 years ago • 1 comments

Hi, I'm using this plugin, I have a folder called 'schema' and under it are some json files which i want that webpack should include in its bundling. At the moment in the '.webpack' folder I'm only seeing the service folder and no schema folder. My function reads this json file and has the dependencies on them. Can you please let me know how can I achieve this ? At the moment I'm getting error if I try to read the file (File not found err) if I specify the custom path ('./myfile.json')

goldytech avatar Oct 24 '17 07:10 goldytech

@goldytech Are you importing these files in your handler functions?

jayair avatar Oct 25 '17 17:10 jayair