Dev plugins in serverless.yaml

What is the recommended practice of including plugins like serverless-dynamodb-local & serverless-offline?

Those plugins are devDependencies and so are removed during our build process (npm prune --production). Subsequently, sls deploy fails, complaining that the respective plugin is not found.

I can work around it with separation of configs (serverless.yaml & serverless.dev.yaml) but AFAIK, configs cannot inherit from one-onother, so will end-up having mostly duplicate files. Is there a DRYer solution?

Thanks.