We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Do I enable AOT and optimize ? Also is there an easy way to update to angular 7 ?
The text was updated successfully, but these errors were encountered:
@Awk34 The project is build in jit or aot? if is in jit, how i build project with AOT?
Sorry, something went wrong.
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' }, .......
"@angular/cli": "^6.2.9",
"@angular/compiler-cli": "^6.1.10",
"@ngtools/webpack": "^1.10.2",
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'],
config.plugins = [ new AngularCompilerPlugin({ tsConfigPath: './tsconfig.json', mainPath: './client/app/app', entryModule: './client/app/app.module#AppModule', sourceMap: true, skipCodeGeneration: BUILD ? false : true }),......
template: require('./home')
templateUrl: './home'
styles: [require('./main.scss')]
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
No branches or pull requests
How Do I enable AOT and optimize ? Also is there an easy way to update to angular 7 ?
The text was updated successfully, but these errors were encountered: