Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monokh/make-dir-webpack-plugin
Make dirs in webpack
https://github.com/monokh/make-dir-webpack-plugin
Last synced: 17 days ago
JSON representation
Make dirs in webpack
- Host: GitHub
- URL: https://github.com/monokh/make-dir-webpack-plugin
- Owner: monokh
- License: mit
- Created: 2017-07-14T22:28:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T18:43:44.000Z (over 7 years ago)
- Last Synced: 2024-10-17T11:07:53.773Z (29 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.