Using esbuild in Eleventy

Another Eleventy recipe, this time for bundling JavaScript, CSS , and other asset types with esbuild . You can adapt it to how you prefer your markup, or to other bundlers such as Vite . I’ve also used this approach to produce hashed front-end assets for WordPress and Kirby . In Eleventy, you’ll be able to reference a JavaScript source file in your Nunjucks template and have the src attribute…