Tagged articles
dev server
13 articles · Page 1 of 1
Attackers can exploit unauthenticated WebSocket connections in Vite dev servers to bypass file-system protections and read sensitive files like .env, SSH keys, and /etc/passwd via the vite:invoke fetchModule handler, affecting multiple versions patched in April and October 2026.
.envCVEVite
0 likes · 4 min read

This article explains how Vite achieves fast development by serving ES modules directly, using a connect‑based dev server with plugin‑driven transforms, pre‑bundling dependencies via esbuild, generating hash‑based cache keys, and reusing the same plugins in Rollup for production builds.
Pre‑bundlingRollupdev server
0 likes · 9 min read

Vite accelerates development by serving unbundled ES modules directly to the browser, using a connect‑based dev server that compiles on‑demand, leverages esbuild for fast pre‑bundling of dependencies, generates hash‑based cache queries, and shares plugins with Rollup for consistent production builds.
Build ToolsFrontend DevelopmentHot Module Replacement
0 likes · 9 min read

This article explains Webpack 4’s hot module replacement feature, covering the compilation process, dev‑server setup, entry configuration, websocket communication, the role of HotModuleReplacementPlugin, and the detailed steps of detecting changes, downloading updates via JSONP, and applying updated modules in the browser.
Frontend BuildHot Module ReplacementJavaScript
0 likes · 14 min read

This article explains how to create a Vite plugin that persists the module graph cache across dev‑server restarts, uses ETag comparison to serve 304 responses, and integrates custom middleware to dramatically improve first‑page load times in development mode.
dev serverfrontend performancemoduleGraph
0 likes · 11 min read

This comprehensive, step‑by‑step guide walks developers through Webpack’s core concepts, project setup, configuration files, development server with hot module replacement, essential loaders for CSS, images, Less, and Babel, plus optimization techniques such as JavaScript minification, CSS extraction, and output cleaning.
Babeldev serverfrontend
0 likes · 15 min read


ByteFEApr 18, 2022 · Frontend Development
This article provides a comprehensive overview of Vite, covering its motivation as a modern frontend toolchain, core features such as native ES‑module dev server, fast dependency pre‑bundling with esbuild, production builds via Rollup, and detailed explanations of its plugin architecture and debugging utilities.
dependency prebuilddev serveresbuild
0 likes · 15 min read

This article explains what Webpack's Hot Module Replacement (HMR) is, walks through its configuration steps, and dives deep into the underlying mechanisms—including the dev server, socket communication, and HotModuleReplacementPlugin—showing how HMR enables instant, state‑preserving updates during development.
HMRHot Module Replacementdev server
0 likes · 15 min read

This article explains the business need for faster development, introduces Vite and its origins, walks through its CLI, server creation, middleware pipeline, and especially its dependency pre‑bundling mechanism powered by esbuild, while also highlighting performance trade‑offs, ecosystem support, and production suitability.
Vitedependency pre‑bundlingdev server
0 likes · 33 min read

This article explains the background, concepts, workflow, and hands‑on setup of Webpack’s Hot Module Replacement (HMR), detailing server‑client communication, runtime mechanics, and how to manually implement module hot‑updates without a framework, complete with code examples and configuration tips.
Frontend DevelopmentJavaScriptdev server
0 likes · 14 min read

This article demystifies Webpack Dev Server by detailing its core components—webpack-dev-middleware, hot module replacement, live reload, proxy, and history API fallback—while providing practical code examples and configuration tips to streamline local development, improve build performance, and simplify debugging in modern frontend projects.
Frontend DevelopmentLive Reloaddev server
0 likes · 25 min read

This article explains how Vite improves development experience over traditional bundlers by leveraging native ESM support for a fast dev server, efficient hot‑module replacement, pre‑bundling of Node modules, and seamless integration with Rollup plugins for production builds and SSR.
ESMFrontend DevelopmentHMR
0 likes · 12 min read

This article explains why Webpack‑dev‑server's hot refresh failed in a mixed JS‑Node‑PHP project, analyses the underlying host‑checking logic, and provides step‑by‑step configuration changes—including whitelist adjustments, CORS handling, and proper HotModuleReplacementPlugin usage—to achieve reliable hot reload and hot module replacement.
CORSHot ReloadProxy
0 likes · 13 min read
