3.0.3 • Published 10 months ago

webpack-config-dump-plugin v3.0.3

Weekly downloads
345
License
MIT
Repository
github
Last release
10 months ago

Webpack plugin Dump Webpack Config into file system

A webpack plugin to dump compiled webpack config into file system. Is useful in case you have resolve aliases formed dynamically and want your IDE to be able to handle them.

For typescript config file you can use webpack-typescript-config-dump-plugin

MIT License

Installation

npm i webpack-config-dump-plugin --save-dev

Usage

Javascript module

const { WebpackConfigDumpPlugin } = require("webpack-config-dump-plugin");

// webpack config
{
  plugins: [new WebpackConfigDumpPlugin(options)];
}

Typescript module

import { WebpackConfigDumpPlugin } from "webpack-config-dump-plugin";

// webpack config
{
  plugins: [new WebpackConfigDumpPlugin(options)];
}

Options and defaults

OptionTypeRequiredDefaultDescription
outputPathstringno./Path to store config dump
namestringnowebpack.config.dumpDump filename
depthnumberno4Config depth. Since webpack config is circularly locked, we can't dump whole config. This parameter sets how deep config dump will be stored
keepCircularReferencesbooleannofalseIf true, dumps whole config (disables the "depth" option) and marks parts that are circular references
showFunctionNamesbooleannofalseBy default functions are excluded from the final dump. If true, plugin marks properties that are functions
includeFalseValuesbooleannofalseBy default false-ish values are excluded from the dump. If true, plugin will dump empty objects, 0, '' etc

Changes

  • 3.0.2 Bumped dependencies. Also wildcard the lodash and webpack-log so it accepts any version change from the upstream project

  • Version 3 Added more flexibility, see the options section.
    Introduced some features like keepCircularReferences and so forth
    BREAKING: Adjusted consistency for empty values. Now it does not output empty objects and empty arrays by default (i.e. with includeFalseValues=false). Check the plugin configuration for details.

  • Version 2 In version 2 the plugin has been rewritten using Typescript.
    BREAKING: Now it needs to be imported as ES module. Check the information above for details.

3.0.3

10 months ago

3.0.2

10 months ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago