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 devAll lessons in this course
- What Is Svelte and Why It Compiles
- Creating a Project with npm create svelte
- Project Structure: src routes static
- The Dev Server and Hot Module Replacement