2.0.0 • Published 2 years ago

@aiao/universal-fastify-engine v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

@aiao/universal-fastify-engine

npm

fastify 支持 Angular universal 的 engine 支持多语言环境

Use Case

SSR

Install

yarn add @aiao/universal-fastify-engine

Usage

参考 apps/dev-universal-fastify-engine

API

NgSetupOptions

属性类型说明
bootstrapFunctionAngular 的服务模块(AppServerModule
distPathstringAngular 项目的输出目录
defaultLocale?stringAngular 的默认语言 locale
document?stringAngular index.html 的字符串
documentFilePath?stringAngular index.html 的路径
locales?string[]Angular 发布的多语言
providers?StaticProvider[]默认的 providers

RenderOptions

属性类型说明
locale?string指定渲染语言
document?string指定渲染 index.html 的字符串
providers?StaticProvider[]指定 providers
disableSend?boolean关闭默认发送方法,可自定义渲染后的 index.html 内容返回
1.4.0

2 years ago

2.0.0

2 years ago

1.2.4-alpha.0

2 years ago

1.3.0

2 years ago

1.3.0-alpha.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.3-alpha.0

4 years ago

0.1.1-alpha.2

4 years ago

0.1.1-alpha.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago