1.0.2 • Published 4 years ago

elite-four v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

elite four

An 11ty plugin that:

  1. Minimizes HTML, CSS, and JS, inlining the latter two
  2. Gives a few good Eleventy defaults
  3. Adds several liquid shortcodes, filters, and transforms
  4. Extends markdown-it's functionality

This plugin is built entirely based on my preference and my workflow, there is literally no built-in customization

Features:

Asset Processing

  • Get image dimensions and inline them in order to prevent content shifting
  • Minimize HTML output using HTMLMinifier
  • Automatically add noopener noreferrer to external links to make them safer

Eleventy Defaults

Liquid Extensions

Markdown Extensions

Usage

In your 11ty project:

npm i elite-four

then add this to your site's .eleventy.js (or equivalent):

const eliteFour = require('elite-four');

module.exports = function (eleventyConfig) {
  eleventyConfig.addPlugin(eliteFour);
}