f2e-server 2 (v2.20.13) is a front-end development server with built-in support for Less compilation, Babel transpilation, live reload, and middleware-based plugin architecture. It provides CLI commands for starting a dev server (`f2e start`), building to output (`f2e build`), and generating config files (`f2e conf`). Unlike heavyweight dev servers like webpack-dev-server, f2e-server focuses on simplicity and runtime-build with proxy capabilities. It ships with TypeScript type definitions but is primarily configured via CommonJS config files. The project has been updated infrequently (last release likely 2021-2022) and may lack modern features like HMR or ESM native support. The server auto-detects ports starting from 2850 and supports HTTPS and custom hostnames. It is suitable for lightweight front-end projects that need a quick development environment with minimal configuration.
npm install f2e-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic f2e-server configuration file with live reload, Less, Babel, and a middleware that proxies ES6 routes and compiles Markdown to HTML.
Update middleware to return an object and use conf parameter.
Replace with 'node-fetch' or 'axios' in your middleware.
Always return false from onRoute if you are handling the response yourself.
Set 'no_host: true' if you want to ignore host header and serve all requests.
Start with a specific port: f2e start -p 2851
Install marked: npm install marked --save-dev
Use store._set only inside onSet handler.
Install globally: npm install -g f2e-server