Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitedani/vite-plugin-angular
Vite plugin for Angular, using esbuild and SWC
https://github.com/nitedani/vite-plugin-angular
angular vite
Last synced: 5 days ago
JSON representation
Vite plugin for Angular, using esbuild and SWC
- Host: GitHub
- URL: https://github.com/nitedani/vite-plugin-angular
- Owner: nitedani
- Created: 2022-09-10T15:02:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T02:02:11.000Z (10 months ago)
- Last Synced: 2024-10-30T08:33:18.233Z (14 days ago)
- Topics: angular, vite
- Language: TypeScript
- Homepage:
- Size: 1.21 MB
- Stars: 72
- Watchers: 5
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vite plugin for Angular.
```
npm init @nitedani/vite-angular-app
```### Features:
- Fast live-reload, both in browser([vite](https://vitejs.dev/)) and server code([vavite](https://github.com/cyco130/vavite))
- Easy SSR(optional) using [Vike](https://vike.dev/)
- Optionally, in development mode, it uses [SWC](https://swc.rs/) 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:
- [Simple](./examples/simple/)
- [Angular routing module](./examples/routing-module/)
- [Angular Material](./examples/material/)### Examples with SSR:
- [Express SSR](./examples/express/)
- [NestJS SSR](./examples/universal/)
- [Vike + NestJS](./examples/vike-nestjs/)
- [Vike + Express](./examples/vike-express/)
- [Vike + Express + Telefunc](./examples/vike-express-telefunc/)| 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:
```typescript
// vite.config.ts
import { defineConfig } from "vite";
import { angular } from "@nitedani/vite-plugin-angular/plugin";export default defineConfig({
plugins: [angular()],
});
```