Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

exportarts/angular-universal-utils

Repository files navigation

angular-universal-utils (deprecated)

Deprecation Notice

This project has been discontinued in favor of two better alternatives:

npm

Work in Progress... More featues and docs are coming in the future.

Installation

npm install --save-dev @exportarts/angular-universal-utils

# or

yarn add -D @exportarts/angular-universal-utils

Usage

Use the prerenderApplication() function to prerender an Angular Universal App.

All you have to provide is an array of routes to render and your compiled Universal App (similar to this example).

Optionally, a simple sitemap can be generated. This feature is really basic at the moment and more configuration options will eventually be available.

The easiest way is to run the function with ts-node. Alternatively, you can build it with webpack and run it with regular node.

Dependency Management

The project in ./lib has several peer-dependencies. Those are installed as dev-dependencies in the main project to have them available during development, but to not have them included in the final package.json.

About

Collection of utilities we commonly use in Angular Universal projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published