@types/webpack-blocks__webpack
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

Installation

npm install --save @types/webpack-blocks__webpack

Summary

This package contains type definitions for @webpack-blocks/webpack (https://github.com/andywer/webpack-blocks/tree/master/packages/webpack).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-blocks__webpack.

index.d.ts

import { Configuration, Entry, Options, Output, Plugin, Resolve } from "webpack";

import {
    Block,
    ConfigSetter,
    Context,
    env,
    group,
    InitialContext,
    match,
    MatchOptions,
    Util,
    when,
} from "@webpack-blocks/core";
export {
    Block,
    ConfigSetter,
    Context,
    env,
    group,
    InitialContext,
    match,
    MatchOptions,
    Util,
    when,
} from "@webpack-blocks/core";

type PluginFunction = (compiler: any) => Plugin;

export interface ConstantOptions {
    [constantName: string]: any;
}

export interface OptimizationOptions {
    minimize?: boolean | undefined;
    minimizer?: Plugin[] | PluginFunction | undefined;
}

export function createConfig(configSetters: Block | Block[]): Configuration;
export function setMode(mode: any): Block;
export function addPlugins(plugins: Plugin[]): Block;
export function customConfig(wpConfig: any): Configuration;
export function defineConstants(constants: ConstantOptions): Block;
export function setEnv(constants: ConstantOptions): any;
export function entryPoint(entry: string | string[] | Entry): Block;
export function performance(performanceBudget: Options.Performance): Block;
export function optimization(optimizationOptions: OptimizationOptions): Block;
export function resolve(config: Resolve): Block;
export function setContext(contextPath: string): Block;
export function setDevTool(devtool: string): Block;
export function setOutput(output?: string | Output): Block;
export function sourceMaps(devtool?: Options.Devtool): Block;

Additional Details

Credits

These definitions were written by Max Boguslavskiy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/webpack-blocks__webpack

Weekly Downloads

32

Version

2.0.7

License

MIT

Unpacked Size

5.99 kB

Total Files

5

Last publish

Collaborators

  • types