0Pricing
Sveltejs Academy · Lesson

The Dev Server and Hot Module Replacement

Run the development server and understand how HMR keeps your browser in sync.

What HMR Is

Hot Module Replacement updates only the modules that changed, without a full page reload. Your application state usually survives.

Start the Server

The dev script starts Vite, which serves your code with HMR enabled out of the box.

npm run dev

All lessons in this course

  1. What Is Svelte and Why It Compiles
  2. Creating a Project with npm create svelte
  3. Project Structure: src routes static
  4. The Dev Server and Hot Module Replacement
← Back to Sveltejs Academy