# make-dir-webpack-plugin

> Make directory webpack plugin

Latest version **0.1.0** (published 2017-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-dir-webpack-plugin
pnpm add make-dir-webpack-plugin
yarn add make-dir-webpack-plugin
bun add make-dir-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-07-25 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | monokh |
| Maintainers | monokh |
| Keywords | make directory, directory, webpack, plugin |

## Links

- npm: https://www.npmjs.com/package/make-dir-webpack-plugin
- Repository: https://github.com/monokh/make-dir-webpack-plugin
- Homepage: https://github.com/monokh/make-dir-webpack-plugin#readme
- Issues: https://github.com/monokh/make-dir-webpack-plugin/issues
- npm.io page: https://npm.io/package/make-dir-webpack-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-07-25
- 0.0.1 — 2017-07-14

## README

# make-dir-webpack-plugin
[![npm version](https://badge.fury.io/js/make-dir-webpack-plugin.svg)](https://badge.fury.io/js/make-dir-webpack-plugin)
by [Monokh](https://monokh.com)

Make directories in webpack compilation

Useful when another webpack plugin depends on a directory existing

## Installation
`
npm install make-dir-webpack-plugin --save-dev
`

## Usage
You need to pass options with `dirs` array.

This is an array of `dirSpec`s which describe what directories need to be created. A dir spec has the following format:

- `path`: The path of the folder to create

## Examples
```
var MakeDirWebpackPlugin = require('make-dir-webpack-plugin');

module.exports = {
  ...
  plugins: [
    new MakeDirWebpackPlugin({
      dirs: [
        { path: './dist/folder1' },
        { path: './dist/folder2' }
      ]
    })
  ]
};
```

## Change Log

### 0.1.0
- Fixed bug that didn't allow nested directories to be created.

---
_Source: https://npm.io/package/make-dir-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
