anantab / serverless-plugin-ifelse

A Serverless Plugin to write If Else conditions in serverless YAML file
69 stars 21 forks source link

Unable to remove plugin #32

Open drorweiss-did opened 3 years ago

drorweiss-did commented 3 years ago

I have a use-case to remove a plugin based on stage level.

For example, I don't want to bundle when in "local" stage:

plugins:
  - serverless-plugin-ifelse
  - serverless-bundle
  - serverless-offline

custom:
  serverlessIfElse:
    - If: '"${self:custom.stage}" == "local"'
      Exclude:
        - plugins.1

However, bundling does happen.

Is this use-case valid to implement?

sjwoodr commented 2 years ago

I wanted to do the same but it seems not to work.

luisipv7 commented 2 years ago

I'm same problem