2.0.7 • Published 6 months ago
@types/webpack-blocks__webpack v2.0.7
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
- Last updated: Fri, 02 Jul 2021 18:05:25 GMT
- Dependencies: @types/webpack, @types/webpack-blocks__core
- Global values: none
Credits
These definitions were written by Vladimir Grenaderov, and Max Boguslavskiy.