Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
Angular AOT with Webpack

Is there any documentation out there on how to get Angular4 working with webpack with AOT? I checked a number of articles but they dont seem to work properly.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

you can use @ngtools/webpack plugin fir this.

Install the plugin and use like this

{
  test: /\.ts?$/,
  use: '@ngtools/webpack',
}

and add to plugin

new ngtools.AotPlugin({
    tsConfigPath: path.join(process.cwd(), 'tsconfig.json'),
    entryModule: path.join(process.cwd(), 'src/app/app.module#AppModule')
})
over 4 years ago · Santiago Trujillo Report

0

The Angular CLI uses webpack: https://cli.angular.io/

It's pretty nice to use to start projects, the only downside to using the CLI is that you have little (no) control over the webpack configuration.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!