GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — How Do I enable AOT ? · Issue #2772 · angular-fullstack/generator-angular-fullstack

This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

How Do I enable AOT ?  #2772

Copy link
Copy link
Open
Open
How Do I enable AOT ? #2772
Copy link

Description

@koraysels
koraysels
opened on Nov 5, 2018
Issue body actions
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 5.0.0-rc.4
Node v10.6.0
npm 6.1.0
Operating System OS X 10
etc etc
Item Answer
Transpiler TypeScript
Markup HTML
CSS SCSS
Router ngRoute
Client Tests Jasmine / Mocha
DB MongoDB
Auth Y
etc etc

How Do I enable AOT and optimize ? Also is there an easy way to update to angular 7 ?

Activity

  1. LuisFlip commented on Dec 20, 2018

    @LuisFlip
    LuisFlip
    on Dec 20, 2018
    More actions

    @Awk34 The project is build in jit or aot?
    if is in jit, how i build project with AOT?

  2. LuisFlip commented on Feb 7, 2019

    @LuisFlip
    LuisFlip
    on Feb 7, 2019
    More actions

    Hello,
    for enable AOT i install:
    "@angular/cli": "^6.2.9",
    "@angular/compiler-cli": "^6.1.10",
    "@ngtools/webpack": "^1.10.2",
    in webpack.make.js:
    config.module = { rules: [ { test: /(\.ngfactory\.js|\.ngstyle\.js|\.ts)$/, loader: '@ngtools/webpack' }, .......

    config.plugins = [ new AngularCompilerPlugin({ tsConfigPath: './tsconfig.json', mainPath: './client/app/app', entryModule: './client/app/app.module#AppModule', sourceMap: true, skipCodeGeneration: BUILD ? false : true }),......
    i replace ALL components templates and styles
    example:
    template: require('./home') to templateUrl: './home'
    styles: [require('./main.scss')] to styleUrls: ['./main.scss'],

    this code enable AOT only in production mode, in development mode use JIT.

    PS: if doesn't work, combines the packages versions.

    I used Angular 6.0.4 and it works. i hope this help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.