serverless-nodejs-starter
serverless-nodejs-starter copied to clipboard
Adding custom files in webpack bundler
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 Are you importing these files in your handler functions?