serverless-webpack-prisma icon indicating copy to clipboard operation
serverless-webpack-prisma copied to clipboard

Cannot use webpackOutputPath config with serverless-bundle

Open joshg47 opened this issue 2 years ago • 0 comments

Hey there. I originally opened an issue requesting the ability to configure where the serverless-webpack-prisma plugin looks up the .webpack folder: https://github.com/danieluhm2004/serverless-webpack-prisma/issues/18

I was happy to see it was recently added. However, I use serverless-bundle to configure all of my webpack settings. They do not allow custom serverless-webpack configurations, so when I do this:

custom:
  webpack:
    webpackOutputPath: ./ # Passing this param, plugin will change the directory to find the dir .webpack

I get this error:

Error:
'serverless-webpack config detected in serverless.yml. serverless-bundle is not compatible with serverless-webpack.'

Would it be possible to have a serverless-webpack-prisma setting that defines where the .webpack folder is? Simple as:

custom:
  prisma:
    webpackOutputPath: ./ # Passing this param, plugin will change the directory to find the dir .webpack

joshg47 avatar Jan 16 '23 20:01 joshg47