Skip plugin based on context

Hello,

Is there any way to skip running a specific build plugin based on the context?

Use case: I would like to trigger e2e tests only on specific contexts (or skip on some), due mainly to it’s duration time.

Use case 2: I would like to run different specs of e2e tests if in production (smoke tests, for instance).

Thanks!

Hi @lucasconstantino,

This is a great idea! In fact, we have the following feature request currently tracking it: Allow context sensitive build plugins config in netlify.toml · Issue #1169 · netlify/build · GitHub
Please let us know what you think of the proposed solution on that issue. Thanks!

1 Like