Eleventy Webpack

screenshot of Eleventy Webpack
eleventy
scss

A barebone Eleventy and Webpack boilerplate

Overview:

The eleventy-webpack template is a barebone Eleventy and webpack template that allows for fast and efficient build processes. It includes various features such as support for ES6 JavaScript with Babel, Sass and PostCSS for styling, responsive images and cached remote images, SEO metadata and Open Graph tags, SVG icon sprite generation, safe external links, useful shortcodes and filters, and a Neat error overlay. The template is optimized for production with source maps, headers, and minified code.

Features:

  • Barebone 11ty: A minimalistic setup for Eleventy.
  • Fast build with per env configs: The build process is fast and efficient thanks to the use of Babel-env, PostCSS-preset-env, and webpack.
  • JS (ES6, Babel, Polyfills): Supports modern ES6 JavaScript syntax with Babel and polyfills for browser compatibility.
  • CSS (Sass, PostCSS, Autoprefixer): Includes support for Sass, PostCSS, and Autoprefixer for easy styling.
  • Optimized for production: The template is optimized for production with features like source maps, headers, and minified code.
  • Responsive images and cached remote images: Supports responsive image handling and caching of remote images using the @11ty/eleventy-img package.
  • SVG icon sprite generation: Bundles SVG files into a symbol sprite file and provides a shortcode for easy usage.
  • SEO metadata and Open Graph tags: Includes built-in support for generating SEO metadata and Open Graph tags.
  • Safe external links: Adds security measures to external links to prevent vulnerabilities.
  • Useful shortcodes and filters: Provides a collection of useful shortcodes and filters, including those for handling dates, markdown, sprite icons, and responsive images.
  • Neat error overlay: Includes a neat error overlay using the eleventy-plugin-error-overlay package.
  • Prettier for formatting: Includes Prettier for code formatting.
eleventy
Eleventy

11ty is a static site generator that allows developers to build fast, modern websites using HTML, Markdown, and other templating languages, without the need for a complex build system.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.