{"id":20198,"library":"make-dir-webpack-plugin","title":"MakeDirWebpackPlugin","description":"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.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/monokh/make-dir-webpack-plugin","tags":["javascript","make directory","directory","webpack","plugin"],"install":[{"cmd":"npm install make-dir-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add make-dir-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add make-dir-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not provide ES modules. Use CommonJS require.","wrong":"import MakeDirWebpackPlugin from 'make-dir-webpack-plugin';","symbol":"MakeDirWebpackPlugin","correct":"const MakeDirWebpackPlugin = require('make-dir-webpack-plugin');"}],"quickstart":{"code":"const MakeDirWebpackPlugin = require('make-dir-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'bundle.js'\n  },\n  plugins: [\n    new MakeDirWebpackPlugin({\n      dirs: [\n        { path: './dist/css' },\n        { path: './dist/js' }\n      ]\n    })\n  ]\n};","lang":"javascript","description":"Creates two directories ('dist/css' and 'dist/js') before webpack compilation runs."},"warnings":[{"fix":"Update to version 0.1.0 or later.","message":"Version 0.1.0 fixed nested directory creation; earlier versions may fail with nested paths.","severity":"gotcha","affected_versions":"<0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}