Socket
Socket
Sign inDemoInstall

mkdir-webpack-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mkdir-webpack-plugin

webpack plugin to make directory


Version published
Weekly downloads
36
increased by620%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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;

Keywords

FAQs

Last updated on 16 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc