• Version 12.0.3
  • Published
  • 133 kB
  • 1 dependency
  • MIT license


npm i @ngtools/webpack
yarn add @ngtools/webpack
pnpm add @ngtools/webpack


Webpack plugin that AoT compiles your Angular components and modules.



variable AngularWebpackLoaderPath

const AngularWebpackLoaderPath: string;


    function angularWebpackLoader

    angularWebpackLoader: (this: any, content: string, map: any) => void;
    • Copyright Google LLC All Rights Reserved.

      Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license


    class AngularWebpackPlugin

    class AngularWebpackPlugin {}


      constructor(options?: Partial<AngularWebpackPluginOptions>);

        property options

        readonly options: AngularWebpackPluginOptions;

          method apply

          apply: (compiler: any) => void;


            interface AngularWebpackPluginOptions

            interface AngularWebpackPluginOptions {}

              property compilerOptions

              compilerOptions?: CompilerOptions;

                property directTemplateLoading

                directTemplateLoading: boolean;

                  property emitClassMetadata

                  emitClassMetadata: boolean;

                    property emitNgModuleScope

                    emitNgModuleScope: boolean;

                      property fileReplacements

                      fileReplacements: Record<string, string>;

                        property inlineStyleMimeType

                        inlineStyleMimeType?: string;

                          property jitMode

                          jitMode: boolean;

                            property substitutions

                            substitutions: Record<string, string>;

                              property tsconfig

                              tsconfig: string;


                                namespace ivy

                                namespace ivy {}
                                • Deprecated

                                  Deprecated as of v12, please use the direct exports (AngularWebpackPlugin instead of ivy.AngularWebpackPlugin)

                                variable AngularWebpackLoaderPath

                                const AngularWebpackLoaderPath: string;

                                  variable AngularWebpackPlugin

                                  const AngularWebpackPlugin: typeof ivyInternal.AngularWebpackPlugin;

                                    type AngularPluginOptions

                                    type AngularPluginOptions = ivyInternal.AngularWebpackPluginOptions;

                                      type AngularWebpackPlugin

                                      type AngularWebpackPlugin = ivyInternal.AngularWebpackPlugin;

                                        Package Files (4)

                                        Dependencies (1)

                                        Dev Dependencies (0)

                                        No dev dependencies.

                                        Peer Dependencies (3)


                                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@ngtools/webpack.

                                        • Markdown
                                        • HTML
                                          <a href="https://www.jsdocs.io/package/@ngtools/webpack"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>