2.0.7 • Published 6 months ago

@types/webpack-blocks__webpack v2.0.7

Weekly downloads
285
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for @webpack-blocks/webpack 2.0
// Project: https://github.com/andywer/webpack-blocks/tree/master/packages/webpack
// Definitions by: Vladimir Grenaderov <https://github.com/VladimirGrenaderov>,
//                 Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

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

import { Context, Util, MatchOptions, ConfigSetter, InitialContext, Block, env, group, match, when } from '@webpack-blocks/core';
export { Context, Util, MatchOptions, ConfigSetter, InitialContext, Block, env, group, match, 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 Vladimir Grenaderov, and Max Boguslavskiy.

2.0.5

8 months ago

2.0.7

6 months ago

2.0.6

7 months ago

2.0.4

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

5 years ago