esbuild-plugin-output-reset
v2.0.2
Published
ESBuild plugin to reset output directory for new build
Downloads
105
Readme
esbuild-plugin-output-reset
ESBuild plugin to reset output directory for new build
Installation
npm install esbuild-plugin-output-reset --save-dev
pnpm install esbuild-plugin-output-reset --save-dev
yarn add esbuild-plugin-output-reset --save-dev
import esbuild from "esbuild";
import clear from "esbuild-plugin-output-reset";
esbuild.build({
entryPoints: ["./src/index.js"],
bundle: true,
outfile: "./dist/index.js",
plugins: [clear],
});