A walkthrough on implementing feature toggles in Eleventy static site generator. Covers a simple JavaScript object approach for toggling features based on NODE_ENV, how to expose toggles in data files and Liquid templates, and a TypeScript-compatible approach using a JSON config file with stronger typing via TypeScript type definitions.

4m read timeFrom kittygiraudel.com
Post cover image
Table of contents
In a nutshell §With TypeScript §Wrapping up §

Sort: