JSPM

  • Created
  • Published
  • Downloads 108567
  • Score
    100M100P100Q179613F
  • License MIT

A minimal, modern, generic, hot-reloading local web server to help web developers.

Package Exports

  • @11ty/eleventy-dev-server
  • @11ty/eleventy-dev-server/server.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@11ty/eleventy-dev-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

11ty Logo

eleventy-dev-server πŸ•šβš‘οΈπŸŽˆπŸ€

A minimal, modern, generic, hot-reloading local web server to help web developers.

➑ Documentation

Installation

This is bundled with @11ty/eleventy (and you do not need to install it separately) in Eleventy v2.0 and newer.

CLI

Eleventy Dev Server now also 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 18 or newer.

CLI Usage

# Serve the current directory
npx @11ty/eleventy-dev-server

# Serve a different subdirectory (also aliased as --input)
npx @11ty/eleventy-dev-server --dir=_site

# Disable the `domdiff` feature
npx @11ty/eleventy-dev-server --domdiff=false

# Full command list in the Help
npx @11ty/eleventy-dev-server --help

Tests

npm run test

Changelog