Skip to content

feat: add not-env tag - #1599

Merged
cossssmin merged 1 commit into
masterfrom
feat/not-env
Oct 13, 2025
Merged

feat: add not-env tag#1599
cossssmin merged 1 commit into
masterfrom
feat/not-env

Conversation

@cossssmin

@cossssmin cossssmin commented Oct 13, 2025

Copy link
Copy Markdown
Member

This PR adds a new custom tag that can be used to render content in any build environment except the specified one. Useful when you have multiple build environments but want something rendered in all builds except a specific one.

For example:

<env:production>
  Rendered when doing `maizzle build production`
</env:production>

<not-env:production>
  Rendered only if NOT doing `maizzle build production`
</not-env:production>

Running maizzle build production would render:

Rendered when doing `maizzle build production`

Running any other build command, like maizzle build or maizzle build preview (assuming you had a config.preview.js), would render:

Rendered only if NOT doing `maizzle build production`

As with <env:>, whatever comes after the colon must match a build environment.

@cossssmin
cossssmin merged commit a7ede6e into master Oct 13, 2025
3 checks passed
@cossssmin
cossssmin deleted the feat/not-env branch April 29, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant