Courses / Specialisations & media / Vite & Modern Frontend Tooling

₹69Self-paced

Vite & Modern Frontend Tooling

Set up a reproducible Vite build with verified bundles, safe environment handling and a gated delivery pipeline.

  • Who it's for. JavaScript developers comfortable with modules, npm and a terminal who want to understand and control their frontend build.
  • Before you start. Prerequisite courses: JavaScript Programming, Git, GitHub and Open Source Contribution.
  • 26 to 44 hours of study with practice
  • 8 modules, 42 lessons
  • 3 guided projects and a final project

What you'll learn

  • Explain and prove the difference between the dev server and the production build
  • Control assets, CSS, environment variables and modes and scan output for leaks
  • Write, order and test small Vite plugins
  • Measure bundles, split chunks and enforce budgets with exit codes
  • Deliver builds under a base path, as multi-page or library output, and prove they are reproducible

Skills you'll gain

  • Development
  • build modes
  • Modules
  • resolution
  • Assets
  • CSS
  • Configuration
  • plugins
  • Environment variables
  • Bundle analysis
  • Testing integration
  • Build delivery

Tools you'll use

  • Vite
  • Node.js
  • npm
  • curl
  • Lockfiles

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Development and build modes to Assets and CSS

    Explain how the Vite dev server, dependency pre-bundling, and the production build differ, and prove each with observable output.

    You build: Guided project “Inspectable app foundation”: Running dev entry plus an inventory of the first production build Alias and glob-driven registry.

  2. 02

    Modules 4 to 6

    Configuration and plugins to Bundle analysis

    Write, branch and inspect vite.config, then author small plugins using documented hooks and verify their effect on dev and build output.

    You build: Guided project “Configured, typed and measured build”: Conditional config and a transform plugin Env precedence table and leak scanner.

  3. 03

    Modules 7 to 8

    Testing integration to Build delivery

    Wire unit tests, type-checking, linting and formatting into the Vite project as separate gates with explicit exit codes, without teaching test design or a testing framework in depth.

    You build: Guided project “Gated delivery pipeline”: Verify script chaining type-check, lint, format, test, build; Base-path build, preload-error recovery and two-build comparison.

Full curriculum

8 modules and 42 lessons, 26 to 44 hours of study

01Development and build modes5 lessons, 2 to 4 hours

Lessons

  • Starting a dev server from index.html
  • Native ES modules and the dev-time module graph
  • HMR: updating a module without a reload
  • Dependency pre-bundling and the .vite cache
  • vite build and vite preview: what the production build writes

After this module you can

  • Scaffold a vanilla project, start vite, and show that index.html at the project root is the served entry on port 5173.
  • Show with the browser network log or curl that the dev server serves each source module as a separate request instead of one bundle.
  • Run vite build, list dist/, and serve it with vite preview to prove the output works without the dev server.
02Modules and resolution5 lessons, 2 to 4 hours

Lessons

  • How relative and bare specifiers resolve
  • resolve.alias for stable import paths
  • import.meta.glob for file-driven modules
  • Dynamic import and import variables
  • Workspace packages, dedupe and file-system access

After this module you can

  • Predict which file a relative or bare import resolves to and confirm with the served module or the build output.
  • Configure resolve.alias so that '@/' maps to src and verify it in dev, in the build output, and in a CSS @import.
  • Link a local package in a workspace, fix a duplicated-dependency symptom with resolve.dedupe, and explain server.fs.allow.
03Assets and CSS5 lessons, 2 to 4 hours

Lessons

  • Importing an asset as a hashed URL
  • public directory and new URL(import.meta.url)
  • assetsInlineLimit and the ?inline, ?raw, ?url queries
  • CSS imports, CSS Modules and ?inline styles
  • CSS code splitting, preprocessors and source maps

After this module you can

  • Import an image from JS and CSS and show it becomes a content-hashed file under assets/ in the build but a source path in dev.
  • Choose between the public directory and a module-relative new URL for static files and show the resulting URLs in the output.
  • Toggle build.cssCodeSplit and compare CSS file counts; add a Sass file and a dev source map option and explain what each changes.
04Configuration and plugins6 lessons, 3 to 4 hours

Lessons

  • vite.config structure and conditional config
  • Dev server and preview options
  • Proxying API calls and defining constants
  • Plugin anatomy, apply and enforce ordering
  • Writing a transform hook plugin
  • Virtual modules and transformIndexHtml

After this module you can

  • Write a vite.config that exports a function of { command, mode } and show different resolved values for serve and build.
  • Set server.port, strictPort, open and preview.port and verify the effect with an occupied port.
  • Expose build metadata through a virtual: module and inject a tag into index.html with transformIndexHtml.
05Environment variables5 lessons, 2 to 4 hours

Lessons

  • VITE_ prefix and import.meta.env exposure
  • .env file order, modes and shell precedence
  • Mode versus NODE_ENV
  • TypeScript typing and loadEnv in config
  • Secrets, safe defaults and scanning the bundle for leaks

After this module you can

  • Show that only VITE_-prefixed variables from .env appear in import.meta.env and that every value is a string.
  • Predict the final value of a variable defined in .env, .env.local, .env.production and the shell, then confirm by building.
  • Write a script that scans the build output for known secret values and fails with a non-zero exit code, and use PROD/DEV constants to remove dev-only code.
06Bundle analysis5 lessons, 2 to 4 hours

Lessons

  • Measuring build output: file list, sizes and compressed size
  • Splitting by route with dynamic import
  • Grouping shared code with the codeSplitting output option
  • Reading the manifest.json file
  • Size budgets, warnings and tree-shaking evidence

After this module you can

  • Produce a JSON inventory of the build output with raw and gzip sizes and compare it to the sizes Vite prints.
  • Turn two eagerly imported pages into lazy imports and show the build now has two more JS chunks with the entry smaller by an expected margin.
  • Write a budget gate that fails with exit code 1 when a chunk or the total exceeds a limit and relate it to build.chunkSizeWarningLimit.
07Testing integration5 lessons, 2 to 4 hours

Lessons

  • Vitest reusing the Vite config
  • Test environments and what the build config does not provide
  • Type-checking as a separate gate
  • Linting and formatting checks as exit-code gates
  • One verify script: ordering gates and failing fast

After this module you can

  • Run a unit test with Vitest in a Vite project and show that the same alias and plugins from vite.config apply in the test run.
  • Choose a test environment for DOM-touching code and identify which build-only settings do not apply in tests.
  • Compose type-check, lint, format check, unit tests and build into one npm script and prove it stops at the first failing gate.
08Build delivery6 lessons, 3 to 4 hours

Lessons

  • Public base path and deploying under a subpath
  • Multi-page builds with several HTML entries
  • Library mode: entry, formats, externals and exports
  • Stale chunks, preload errors and caching headers
  • Workspace builds: building a package before its consumer
  • Reproducible builds: lockfile, Node pin and comparing two runs

After this module you can

  • Build with base set to a subpath and verify every URL in the output is prefixed, then serve it under that path.
  • Configure build.rolldownOptions.input with two HTML files and verify the output file names and shared chunk.
  • Make a build repeatable with a lockfile install and a pinned Node version, then compare two clean builds by file names and hashes.

What you'll build

3 guided projects along the way, then a final project.

  • Inspectable app foundation

    after module 3
  • Configured, typed and measured build

    after module 6
  • Gated delivery pipeline

    after module 8

Final project

Reproducible frontend build with verified bundles and environment handling. Choose one option: Reproducible app build; Component library with consumer app; Multi-page site delivery kit.

What you submit

Source repository submission with lockfile and pinned Node version. Functional checks: verify script exit codes for each gate (type-check, lint, format, test, build).

How it's reviewed

Trainer review against the rubric: Build correctness and exit codes (25); Environment and secret handling (20); Bundle analysis and budgets with stated tolerances (20); Reproducibility evidence (20); Clarity of setup and reasoning in the demonstration (15).

Where you'll use it

  • Find what makes a production bundle large and reduce it with measured results.
  • Keep secrets out of client code by checking which environment variables reach the browser.

Roles that use these skills

  • Front-end engineer
  • Build and tooling engineer
  • Web developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: JavaScript Programming, Git, GitHub and Open Source Contribution. Comfortable with JavaScript modules (import/export), npm and a terminal (the earlier course or equivalent) and basic web page structure (the earlier course or equivalent). Diagnostic: write a two-file ES module program and run an npm script. TypeScript lessons need only reading ability, not the earlier course.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Where do the labs run?

Local Node (20.19+ or 22.12+), npm, curl, a browser for console checks (each has a scriptable text equivalent), pinned fixtures with lockfiles. No LMS code runner is assumed; evidence is text output, JSON, file lists and exit codes. Never run builds on production servers.

Be first in when Vite & Modern Frontend Tooling opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me