4.5.4 • Published 6 months ago

@types/write-file-webpack-plugin v4.5.4

Weekly downloads
2,337
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/write-file-webpack-plugin

Summary

This package contains type definitions for write-file-webpack-plugin (https://github.com/gajus/write-file-webpack-plugin#readme).

Details

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

index.d.ts

// Type definitions for write-file-webpack-plugin 4.5
// Project: https://github.com/gajus/write-file-webpack-plugin#readme
// Definitions by: Nathan Hardy <https://github.com/nhardy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import webpack = require("webpack");

export interface UserOptionsType {
    /**
     * Atomically replace files content (i.e., to prevent programs like test watchers from seeing partial files).
     * @default true
     */
    atomicReplace?: boolean | undefined;
    /**
     * Stop writing files on webpack errors
     * @default true
     */
    exitOnErrors?: boolean | undefined;
    /**
     * A regular expression or function used to test if file should be written.
     * When not present, all bundle will be written.
     */
    test?: RegExp | undefined;
    /**
     * Use hash index to write only files that have changed since the last iteration.
     * @default true
     */
    useHashIndex?: boolean | undefined;
    /**
     * Logs names of the files that are being written (or skipped because they have not changed)
     * @default true
     */
    log?: boolean | undefined;
    /**
     * Forces the execution of the plugin regardless of being using `webpack-dev-server` or not
     * @default false
     */
    force?: boolean | undefined;
}

export default class WriteFilePlugin extends webpack.Plugin {
    constructor(userOptions?: UserOptionsType);
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:06:04 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Nathan Hardy.

4.5.4

6 months ago

4.5.3

7 months ago

4.5.2

3 years ago

4.5.1

3 years ago

4.5.0

4 years ago