4

Quick question cause I may be blind or stupid. But is there a flag in the CLI so that I can have every component I generate add moduleId: module.id to my @Component decorator?

Updates: Just to clear things up a little bit, I'm trying to use ngu-sw-manifest command from a package called ng-pwa-tools.

More Updates: I'm aware that some people have said that the CLI recommends not to use moduleId anymore, but I'm basing this need off of what a member of the Angular team has said.

MichaelSolati
  • 2,847
  • 1
  • 17
  • 29

1 Answers1

1

As is explained elsewhere, moduleId is not needed in angular-cli apps. The reason for this is that, under the hood, webpack automatically adds moduleId to the final bundle; hence, it is no surprise that there are no command line options having to do with moduleId.

jfmercer
  • 3,641
  • 3
  • 29
  • 35