@angular-builders/custom-webpack

  • Version 19.0.0
  • Published
  • 103 kB
  • 6 dependencies
  • MIT license

Install

npm i @angular-builders/custom-webpack
yarn add @angular-builders/custom-webpack
pnpm add @angular-builders/custom-webpack

Overview

Custom webpack builders for Angular build facade. Allow to modify Angular build configuration without ejecting it

Index

Functions

function buildCustomWebpackBrowser

buildCustomWebpackBrowser: (
options: CustomWebpackBrowserSchema,
context: BuilderContext
) => ReturnType<typeof executeBrowserBuilder>;

    function buildCustomWebpackKarma

    buildCustomWebpackKarma: (
    options: CustomWebpackKarmaBuildSchema,
    context: BuilderContext
    ) => ReturnType<typeof executeKarmaBuilder>;

      function buildCustomWebpackServer

      buildCustomWebpackServer: (
      options: CustomWebpackServerSchema,
      context: BuilderContext
      ) => ReturnType<typeof executeServerBuilder>;

        function customWebpackConfigTransformFactory

        customWebpackConfigTransformFactory: (
        options: CustomWebpackSchema,
        context: BuilderContext
        ) => ExecutionTransformer<Configuration>;

          function executeBrowserBasedBuilder

          executeBrowserBasedBuilder: <O extends unknown>(
          executebBuilder: BuilderExecutor<O>
          ) => BuilderHandlerFn<O>;

            function getTransforms

            getTransforms: (
            options: CustomWebpackSchema,
            context: BuilderContext
            ) => {
            webpackConfiguration: ExecutionTransformer<Configuration>;
            indexHtml: IndexHtmlTransform;
            };

              function indexHtmlTransformFactory

              indexHtmlTransformFactory: (
              options: CustomWebpackSchema,
              context: BuilderContext
              ) => IndexHtmlTransform;

                Interfaces

                interface BuildTargetOptions

                interface BuildTargetOptions {}

                  property buildTarget

                  buildTarget: string;

                    Type Aliases

                    type BuilderExecutor

                    type BuilderExecutor<O extends BuildTargetOptions & json.JsonObject> = (
                    options: O,
                    context: BuilderContext,
                    transforms?: {
                    webpackConfiguration?: ExecutionTransformer<Configuration>;
                    indexHtml?: IndexHtmlTransform;
                    }
                    ) => any;

                      type CustomWebpackBrowserSchema

                      type CustomWebpackBrowserSchema = BrowserBuilderOptions & CustomWebpackSchema;

                        type CustomWebpackKarmaBuildSchema

                        type CustomWebpackKarmaBuildSchema = KarmaBuilderOptions & CustomWebpackSchema;

                          type CustomWebpackServerSchema

                          type CustomWebpackServerSchema = ServerBuilderOptions & CustomWebpackSchema;

                            type TargetOptions

                            type TargetOptions = json.JsonObject & Target;

                              Package Files (7)

                              Dependencies (6)

                              Dev Dependencies (5)

                              Peer Dependencies (1)

                              Badge

                              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/@angular-builders/custom-webpack.

                              • Markdown
                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@angular-builders/custom-webpack)
                              • HTML
                                <a href="https://www.jsdocs.io/package/@angular-builders/custom-webpack"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>