Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eleventy.env.runMode to default global data #2770

Closed
zachleat opened this issue Jan 24, 2023 · 1 comment
Closed

Add eleventy.env.runMode to default global data #2770

zachleat opened this issue Jan 24, 2023 · 1 comment

Comments

@zachleat
Copy link
Member

zachleat commented Jan 24, 2023

Would allow projects to run template specific code only during --serve or --watch.

runMode is defined here https://www.11ty.dev/docs/events/#event-arguments

@zachleat zachleat added this to the Eleventy 2.0.0 milestone Jan 24, 2023
@zachleat
Copy link
Member Author

Shipping with 2.0.0-beta.2

@zachleat zachleat changed the title Add eleventy.runMode to default global data Add eleventy.env.runMode to default global data Jan 26, 2023
zachleat added a commit to 11ty/11ty-website that referenced this issue Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant