JSPM

  • Created
  • Published
  • Downloads 102164
  • Score
    100M100P100Q182262F
  • 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

npm Version

Installation

You do not need to install this separatelyβ€”it is bundled with @11ty/eleventy starting with Eleventy v2.0.0.

CLI

As of 1.0.0-canary.10 we now include a CLI for the Eleventy Dev Server.

This is for standalone use only. Installation is unnecessary if you’re using this with Eleventy.

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

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

CLI Usage

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

# Serve a different subdirectory
npx @11ty/eleventy-dev-server --input=_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