unplugin-create-dir
v0.1.2
Published
[![NPM version](https://img.shields.io/npm/v/unplugin-create-dir?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-create-dir)
Downloads
3
Maintainers
Readme
unplugin-create-dir
Install
pnpm i -D unplugin-create-dir
Usage
// vite.config.ts
import CreateDir from 'unplugin-create-dir/vite'
export default defineConfig({
plugins: [
CreateDir({
dirs: ['./pkg'],
})
],
})
// rollup.config.js
import CreateDir from 'unplugin-limit-files/rollup'
export default {
plugins: [
CreateDir({
/* options */
})
],
}
// rspack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-create-dir/rspack')({
/* options */
}),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-limit-files/webpack')({
/* options */
}),
],
}
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-limit-files/webpack')({
/* options */
}),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import CreateDir from 'unplugin-limit-files/esbuild'
build({
plugins: [
CreateDir(
/* options */
)
],
})