Webpack and Eleventy paired nicely together in a barebone template.
Webpack seems to be my go-to bundler, thanks to all the React I am doing these days. And since I am going to do a lot more Eleventy in the coming weeks, why not put something out there that my help others.
- 🔥 Barebone 11ty (literally :scream:)
- ⚡ Fast build with per env configs (babel-env, postcss-preset-env, webpack…)
.js(ES6, Babel, Polyfills)
.css(Sass, PostCSS, Autoprefixer)
- ✅ Optimized for production (source maps, headers, minified code…)
- 📸 Responsive images and cached remote images (@11ty/eleventy-img)
- 📦 SVG icon sprite generation
- 🤖 SEO metadata and Open Graph tags
- 🔗 Safe external links (
- 📝 Useful shortcodes and filters (date, markdown, sprite icons, responsive images…)
- 🈵 Neat error overlay (eleventy-plugin-error-overlay)
- 🎨 Prettier for formatting
It currently ranks #6 on Speedlify.