1.0.1 • Published 10 months ago

mkdir-webpack-plugin v1.0.1

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

Mkdir plugin for webpack

npm MIT License

A webpack plugin to make directories in your build folder(s).

NOTE: Node v10+ and webpack v4+ are supported and tested.

About

This plugin will make directories inside webpack's output.path directory

Installation

npm install --save-dev mkdir-webpack-plugin

Usage

const MkdirWebpackPlugin = require('mkdir-webpack-plugin');

const webpackConfig = {
    plugins: [
        new MkdirWebpackPlugin(
            ['logs','tmp/files'] // Array of directories
        )
    ]
};

module.exports = webpackConfig;
const MkdirWebpackPlugin = require('mkdir-webpack-plugin');

const webpackConfig = {
    plugins: [
        new MkdirWebpackPlugin({
            dirs: ['logs','tmp/files'] // Object of directories, key names dirs
        })
    ]
};

module.exports = webpackConfig;
1.0.1

10 months ago

1.0.0

11 months ago

0.0.1

11 months ago