@angularclass/webpack-toolkit

  • Version 1.3.3
  • Published
  • No dependencies
  • Apache-2.0 license

Install

npm i @angularclass/webpack-toolkit
yarn add @angularclass/webpack-toolkit
pnpm add @angularclass/webpack-toolkit

Overview

Webpack helpers for Angular 2 by AngularClass

Index

Variables

variable AC_WEBPACK_ASYNC_MAP

const AC_WEBPACK_ASYNC_MAP: any;

    variable ANGULARCLASS_WEBPACK_RUNTIME_PROVIDERS

    const ANGULARCLASS_WEBPACK_RUNTIME_PROVIDERS: (
    | typeof WebpackAsyncModules
    | {
    provide: typeof WebpackAsyncRoute;
    useFactory: (router: any, webpackAsyncModules: any) => WebpackAsyncRoute;
    deps: (typeof Router | typeof WebpackAsyncModules)[];
    }
    | {
    provide: any;
    useFactory: (
    resolver: any,
    webpackAsyncModules: any
    ) => WebpackComponentResolver;
    deps: (typeof RuntimeCompiler | typeof WebpackAsyncModules)[];
    }
    )[];

      Functions

      function composeRoutes

      composeRoutes: (...routes: any[]) => any;

        function provideWebpack

        provideWebpack: (
        asyncModules: any
        ) => (
        | { provide: any; useValue: any }
        | typeof WebpackAsyncModules
        | {
        provide: typeof WebpackAsyncRoute;
        useFactory: (router: any, webpackAsyncModules: any) => WebpackAsyncRoute;
        deps: (typeof Router | typeof WebpackAsyncModules)[];
        }
        | {
        provide: any;
        useFactory: (
        resolver: any,
        webpackAsyncModules: any
        ) => WebpackComponentResolver;
        deps: (typeof RuntimeCompiler | typeof WebpackAsyncModules)[];
        }
        )[];

          Classes

          class WebpackAsyncModules

          class WebpackAsyncModules {}

            constructor

            constructor(_asyncModules: any);

              method fetch

              fetch: (moduleName: string, exportName?: string) => any;

                method hasModule

                hasModule: (moduleName: string) => boolean;

                  class WebpackAsyncRoute

                  class WebpackAsyncRoute {}

                    constructor

                    constructor(router: any, webpackAsyncModules: WebpackAsyncModules);

                      property router

                      router: any;

                        property webpackAsyncModules

                        webpackAsyncModules: WebpackAsyncModules;

                          method canActivate

                          canActivate: (route: any, state: any) => Observable<boolean> | boolean;

                            class WebpackComponentResolver

                            class WebpackComponentResolver {}

                              constructor

                              constructor(_resolver: any, _webpackAsyncModules: WebpackAsyncModules);

                                method clearCache

                                clearCache: () => void;

                                  method resolveComponent

                                  resolveComponent: (componentType: any) => any;

                                    Package Files (1)

                                    Dependencies (0)

                                    No dependencies.

                                    Dev Dependencies (20)

                                    Peer Dependencies (0)

                                    No peer dependencies.

                                    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/@angularclass/webpack-toolkit.

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