and in my package,json i am including "serverless-offline": "^3.13.5" in my devDependencies, the issue is that before I am deploying I have to comment out the plugins entry in the serverless.yaml or include the serverless-offline in thedependencies` - what is the correct way to include / exclude plugins based on deployment stage?
Well, I haven’t been able to solve this, so I figured out a (terrible) workaround for this particular problem:
I created a config for each stage inside a stages folder in my project (local.yml, development.yml, staging.yml and production.yml). Each with the plugins required (serverless-offline and/or serverless-domain-manager or none).
And in my package.json I added the following (example):