Registry / devops / make-dir-webpack-plugin

make-dir-webpack-plugin

JSON →
library0.1.0jsnpmunverified

A webpack plugin that creates directories during the compilation process. Version 0.1.0 is the latest stable release with no clear release cadence. It is useful when other plugins or loaders expect specific directories to exist (e.g., for output assets). Minimal configuration; niche alternative to using Node.js `mkdir` scripts.

npm install make-dir-webpack-plugin
INSTALL
IMPORT
SIG · MAKE-DIR-WEBPACK-P
M
make-dir-webpack-plugin
devopsjavascriptv0.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MakeDirWebpackPlugin
const MakeDirWebpackPlugin = require('make-dir-webpack-plugin');
import MakeDirWebpackPlugin from 'make-dir-webpack-plugin';
Package does not provide ES modules. Use CommonJS require.

Creates two directories ('dist/css' and 'dist/js') before webpack compilation runs.

const MakeDirWebpackPlugin = require('make-dir-webpack-plugin'); module.exports = { entry: './src/index.js', output: { path: __dirname + '/dist', filename: 'bundle.js' }, plugins: [ new MakeDirWebpackPlugin({ dirs: [ { path: './dist/css' }, { path: './dist/js' } ] }) ] };
Debug
Known issues
gotchaVersion 0.1.0 fixed nested directory creation; earlier versions may fail with nested paths.
fix
Update to version 0.1.0 or later.
affects: <0.1.0
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
make-dir-webpack-plugin — npm install make-dir-webpack-plugin · libregistry