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

4.5.5 • Public • Published

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.

import webpack = require("webpack");

declare namespace WriteFilePlugin {
    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;
    }
}

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

export = WriteFilePlugin;

Additional Details

  • Last updated: Sat, 25 Jan 2025 08:02:24 GMT
  • Dependencies: @types/webpack

Credits

These definitions were written by Nathan Hardy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/write-file-webpack-plugin

Weekly Downloads

646

Version

4.5.5

License

MIT

Unpacked Size

5.54 kB

Total Files

5

Last publish

Collaborators

  • types