Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n0th1ng-else/webpack-config-dump-plugin
A webpack plugin to cache compiled webpack config on the file system
https://github.com/n0th1ng-else/webpack-config-dump-plugin
config dump jest plugin typescript webpack webpack-config webpack-plugin
Last synced: about 2 months ago
JSON representation
A webpack plugin to cache compiled webpack config on the file system
- Host: GitHub
- URL: https://github.com/n0th1ng-else/webpack-config-dump-plugin
- Owner: n0th1ng-else
- License: mit
- Created: 2018-04-22T14:42:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-21T13:57:41.000Z (over 1 year ago)
- Last Synced: 2024-12-20T00:33:59.528Z (2 months ago)
- Topics: config, dump, jest, plugin, typescript, webpack, webpack-config, webpack-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/webpack-config-dump-plugin
- Size: 34.2 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [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](https://www.npmjs.com/package/webpack-typescript-config-dump-plugin)

## Installation
```
npm i webpack-config-dump-plugin --save-dev
```## Usage
### Javascript module
```js
const { WebpackConfigDumpPlugin } = require("webpack-config-dump-plugin");// webpack config
{
plugins: [new WebpackConfigDumpPlugin(options)];
}
```### Typescript module
```typescript
import { WebpackConfigDumpPlugin } from "webpack-config-dump-plugin";// webpack config
{
plugins: [new WebpackConfigDumpPlugin(options)];
}
```### Options and defaults
| Option | Type | Required | Default | Description |
| ---------------------- | ------- | -------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| outputPath | string | no | ./ | Path to store config dump |
| name | string | no | webpack.config.dump | Dump filename |
| depth | number | no | 4 | Config depth. Since webpack config is circularly locked, we can't dump whole config. This parameter sets how deep config dump will be stored |
| keepCircularReferences | boolean | no | false | If true, dumps whole config (**disables the "depth" option**) and marks parts that are circular references |
| showFunctionNames | boolean | no | false | By default functions are excluded from the final dump. If true, plugin marks properties that are functions |
| includeFalseValues | boolean | no | false | By 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.