vite-plugin-clean-build
Version:
A vite plugin for remove/clean files after build.
30 lines (26 loc) • 565 B
TypeScript
import { Plugin } from 'vite';
interface ConfigOptions {
/**
* Remove files inside the directory
*
* default: dist
*
*/
outputDir?: string;
/**
* Removes files after every build that match this pattern
*
* Use !negative patterns to exclude files
*
* default: []
*/
patterns?: string[];
/**
* Write logs to console
*
* default: false
*/
verbose?: boolean;
}
declare const cleanBuildPlugin: (_opt?: ConfigOptions) => Plugin;
export { cleanBuildPlugin as default };