All Projects → vuesomedev → angular2-aot-webpack

vuesomedev / angular2-aot-webpack

Licence: other
Angular AOT (Ahead Of Time) offline compilation example with Webpack

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to angular2-aot-webpack

Universal
Seed project for Angular Universal apps featuring Server-Side Rendering (SSR), Webpack, CLI scaffolding, dev/prod modes, AoT compilation, HMR, SCSS compilation, lazy loading, config, cache, i18n, SEO, and TSLint/codelyzer
Stars: ✭ 669 (+111.04%)
Mutual labels:  aot
Ngx Cache
Cache utility for Angular
Stars: ✭ 144 (-54.57%)
Mutual labels:  aot
Angular Awesome List
Список ресурсов по Angular на русском
Stars: ✭ 224 (-29.34%)
Mutual labels:  aot
Angular Webpack Starter
A complete Angular 6 and Webpack 4 starter seed with minimal and full featured branches. Full featured branch includes: Material Design 2 (Bootstrap 4 branch available as well), @ngrx, HMR, DLLs and optional use of Universal for server-side rendering - Supports AOT (offline) compilation, sync and lazy loading. Karma/Protractor for e2e/unit tests.
Stars: ✭ 911 (+187.38%)
Mutual labels:  aot
Ng2 Smart Table
Angular Smart Data Table component
Stars: ✭ 1,590 (+401.58%)
Mutual labels:  aot
Wasm Micro Runtime
WebAssembly Micro Runtime (WAMR)
Stars: ✭ 2,440 (+669.72%)
Mutual labels:  aot
Angular2 Express Starter
Angular 8 and Express 👪 ( Heroku ready )
Stars: ✭ 565 (+78.23%)
Mutual labels:  aot
NatsuLang
No description or website provided.
Stars: ✭ 96 (-69.72%)
Mutual labels:  aot
Ngx Config
Configuration utility for Angular
Stars: ✭ 135 (-57.41%)
Mutual labels:  aot
Angular Seed Advanced
Advanced Angular seed project with support for ngrx/store, ngrx/effects, ngx-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
Stars: ✭ 2,279 (+618.93%)
Mutual labels:  aot
Parcel Plugin Angular
Complete Angular support for Parcel
Stars: ✭ 29 (-90.85%)
Mutual labels:  aot
Ngx Scrollspy
Angular ScrollSpy Service
Stars: ✭ 94 (-70.35%)
Mutual labels:  aot
Localize Router
An implementation of routes localisation for Angular
Stars: ✭ 177 (-44.16%)
Mutual labels:  aot
Rustc codegen cranelift
Cranelift based backend for rustc
Stars: ✭ 675 (+112.93%)
Mutual labels:  aot
Ts Llvm
TypeScript to LLVM compiler (abandoned)
Stars: ✭ 230 (-27.44%)
Mutual labels:  aot
Robovm
Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
Stars: ✭ 633 (+99.68%)
Mutual labels:  aot
Ngx Currency
📦 Currency mask module for Angular
Stars: ✭ 161 (-49.21%)
Mutual labels:  aot
vox
Vox language compiler. AOT / JIT / Linker. Zero dependencies
Stars: ✭ 288 (-9.15%)
Mutual labels:  aot
Angularfire Lite
⚡️ Lightweight library to use Firebase API 🔥 with Angular
Stars: ✭ 245 (-22.71%)
Mutual labels:  aot
Angular Library Seed
🌾 Seed project for Angular libraries that are AOT/JIT compatible and that use external SCSS-styles and HTML-templates
Stars: ✭ 197 (-37.85%)
Mutual labels:  aot

Angular AOT (Ahead Of Time) offline compilation example with Webpack

Dependency Status devDependency Status

This repository shows how to use the Angular command line offline compiler ngc with Webpack.

If you prefer the Webpack plugin provided by the Angular CLI, it can be found in a separate repository.

The application consists of a module (src/app/modules/main.module.ts) and a basic component (src/app/components/hello-world.component.ts) with template (src/app/components/hello-world.template.html) and component specific style (src/app/components/hello-world.style.css).

When the application starts (npm start) it generates the compiled files next to the modules and the components(*.ngfactory.ts).

There is a different entry point for the JIT compiled(src/app/bootstrap.ts) and AOT compiled application(src/app/bootstrap.aot.ts).

The application is bundled with Webpack from the bootstrap files and is available on http://localhost:9000.

Advantages

  • Can always be used with the newest version of Angular
  • Can output separate compiled files for AOT compatible package publishing

Disadvantages

  • Works only with HTML and CSS, other file types need a previous build step
  • No watch mode yet, must be done manually (bin/ngc-watch.js) and compiles all the files
  • Need to maintain AOT version of bootstrap file
  • Needs cleanup step before compiling

Known issues

Further reading

Starters with AOT compilation available

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].