Clean & bundle for JiT build:
> npm run build-dev
Clean & bundle for AoT build:
> npm run build-prod
Bundle only (without cleaning previous artifacts) for JiT build:
> npm run bundle-dev
Bundle only (without cleaning previous artifacts) for AoT build:
> npm run bundle-prod
Run dev server:
> npm run serve
then browse to http://localhost:3000/
.
Dev server configuration at ./bs-config.js
.
Home page source at ./src/static/index.html
.
-
AOT build does not need a distinct
main.browser.ts
entry point: both development and AOT builds useplatformBrowserDynamic().bootstrapModule()
-
Altough no actual ngfactory is created on disk,
tsconfig-aot,json
still hasangularCompilerOptions.genDir
option, and that is set to the same path where all sources are stored (./src
) -
Both tsconfig* files simply include all TypeScript files under sources directory (
src/**/*.ts
) -
Both tsconfig* files explicitly set
baseUrl
option to the empty string (""
) -
ngToolsWebpack.AotPlugin.entryModule
option is set as a relative path, without trailing./
, without.ts
extension, with module class name as a suffix -
ContextReplacementPlugin
is currently disabled as a workaround to ngtools/webpack issues angular/angular-cli#4431 and angular/angular-cli#6518
See chore/ngrx branch for this same project integrating ngrx platform.
See chore/ngx-boostrap branch for this same project integrating ngx-boostrap library.