This plugin is work in progress. The interfaces can change any time. Don't use it for production!
npm init @nitedani/vite-angular-app
- Fast live-reload, both in browser(vite) and server code(vavite)
- Easy SSR(optional) using vite-plugin-ssr, filesystem routing, layout components
- In development mode, it uses SWC and the Angular JIT compiler in the browser to keep it fast.
- In build mode, it uses esbuild and the Angular AOT compiler to produce small bundles.
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 |
// vite.config.ts
import { defineConfig } from "vite";
import { angular } from "@nitedani/vite-plugin-angular/plugin";
export default defineConfig({
plugins: [angular()],
});
TODO:
- provide more documentation
- make sure it works with angular libraries
- typechecking in development(currently only build is typechecked)