Skip to content

Releases: 11ty/eleventy-dev-server

Eleventy Dev Server v2.0.1

04 Jun 17:18
Compare
Choose a tag to compare
  • Adds messageOnStart callback to customize console log message when server starts. #79
  • Adds Node 22 to test suite.
  • Disables disk cache by default (useCache: true option to re-enable). Fixes #60
  • Fixes issue with default domDiff option when using as CLI (enabled by default)
  • Included with Eleventy core v3.0.0-alpha.11.
  • Full Changelog: v2.0.0...v2.0.1
  • Milestone: https://github.com/11ty/eleventy-dev-server/milestone/5?closed=1

Eleventy Dev Server v2.0.0

19 Apr 21:11
Compare
Choose a tag to compare

Changes

Breaking

  • Node minimum bumped from 14 to 18+.

Minor Changes

  • Adds support for on-request handling via the onRequest option passed as third argument to the server constructor (or passed in via setServerOptions in Eleventy. Read more on the Eleventy documentation. Hereโ€™s an Eleventy usage example:
eleventyConfig.setServerOptions({
  onRequest: {
    "/foo/:name": function({ url, pattern, patternGroups }) {
      // Can return false (to skip), a string (for body content), or object for more advanced processing, e.g.:
      return {
        status: 200,
        headers: {
          "Content-Type": "text/html",
        },
        body: `Hello.`
      };
    }
  }
});
  • Fix CSS live reload behavior when some stylesheets have no URL by @bcole808 in #76
  • Add support for byte-range requests by @joemaller in #62
  • Add indexFileName option to change default index filename from index.html by @dpikt in #69
  • Bugfix for trailing slash redirects when using pathPrefix option. by @petershafer in #64

New Contributors

Eleventy Dev Server v1.0.4

13 Mar 19:25
Compare
Choose a tag to compare

What's Changed

Eleventy Dev Server documentation

Eleventy Dev Server v1.0.2

26 Jan 22:46
Compare
Choose a tag to compare

A tiny bug fix release to re-enable a regression in the DOM diff updates, more at #48.

If youโ€™re using this server with Eleventy (2.0 or newer), note that it is bundled with Eleventy and does not require a separate install!

Eleventy Dev Server v1.0.0

13 Jan 22:18
Compare
Choose a tag to compare

The stable release! This development server was originally developed for Eleventy to replace its browser-sync dependency but evolved to include its own standalone CLI for independent use!

Features

Usage

With Eleventy

If using with Eleventy (2.0 or newer), this server is bundled with Eleventy and does not require a separate install!

Please review the full Eleventy Dev Server docs on 11ty.dev.

Relevant videos on the Eleventy YouTube Channel

Standalone CLI

Eleventy Dev Server includes a CLI. The CLI is for standalone (non-Eleventy) use only: separate installation is unnecessary if youโ€™re using this server with @11ty/eleventy.

npm install -g @11ty/eleventy-dev-server

# Alternatively, install locally into your project
npm install @11ty/eleventy-dev-server

This package requires Node 14 or newer.

Contributions from:

  • fixes error on LAN live-reload by @wommy in #23
  • fix: reload client gets injected before importmaps, breaking importmaps by @p-ob in #33