Skip to content

Releases: 11ty/eleventy-dev-server

Eleventy Dev Server v2.0.4

11 Sep 19:47
Compare
Choose a tag to compare

Minutiae

Eleventy Dev Server v2.0.3

04 Sep 21:43
Compare
Choose a tag to compare
  • Add option for setting default response headers (add your own CORS headers) by @vrugtehagel in #87
  • DOM Diff updates:
    • Re-attach updated custom element nodes to reapply web component connectedCallback logic.
    • Fix for updating Declarative Shadow DOM content #90
    • Full page reload when updating inline <script> content

Minutiae

Eleventy Dev Server v2.0.2

30 Jul 20:01
Compare
Choose a tag to compare

Eleventy Dev Server v2.0.1

04 Jun 17:18
Compare
Choose a tag to compare

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