Skip to content

nitedani/vite-plugin-angular

Repository files navigation

Vite plugin for Angular.

npm init @nitedani/vite-angular-app

Features:

  • Fast live-reload, both in browser(vite) and server code(vavite)
  • Easy SSR(optional) using Vike
  • Optionally, in development mode, it uses SWC and the Angular JIT compiler in the browser to keep it fast.
  • In build mode, it uses the Angular AOT compiler to produce small bundles.

Examples without SSR:

Examples with SSR:

Related packages Included in @nitedani/vite-plugin-angular
@nitedani/angular-renderer-core
@nitedani/angular-renderer-express X
@nitedani/angular-renderer-nestjs X
@nitedani/vite-plugin-ssr-adapter-express X
@nitedani/vite-plugin-ssr-adapter-nestjs X

Usage:

// vite.config.ts
import { defineConfig } from "vite";
import { angular } from "@nitedani/vite-plugin-angular/plugin";

export default defineConfig({
  plugins: [angular()],
});