make-dir-webpack-plugin

0.1.0 • Public • Published

make-dir-webpack-plugin

npm version by Monokh

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 dirSpecs 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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    6,173
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    6,173
  • 0.0.1
    0

Package Sidebar

Install

npm i make-dir-webpack-plugin

Weekly Downloads

6,173

Version

0.1.0

License

MIT

Last publish

Collaborators

  • monokh