Make directory webpack plugin
npm install make-dir-webpack-pluginMake directories in webpack compilation
Useful when another webpack plugin depends on a directory existing
npm install make-dir-webpack-plugin --save-dev
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
var MakeDirWebpackPlugin = require('make-dir-webpack-plugin');module.exports = {
...
plugins: [
new MakeDirWebpackPlugin({
dirs: [
{ path: './dist/folder1' },
{ path: './dist/folder2' }
]
})
]
};
``