# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-blocks__webpack/index.d.ts)
````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
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/webpack-blocks__core](https://npmjs.com/package/@types/webpack-blocks__core)

# Credits
These definitions were written by [Max Boguslavskiy](https://github.com/maxbogus).
