一覧へ戻る
a572251465/rollup-plugin-del(新しいタブで開きます)
主要言語: TypeScript
rollup plugin: Delete package directory (删除打包目录)
- star 数
- 3
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2022/03/17
主要言語: TypeScript
rollup plugin: Delete package directory (删除打包目录)
rollup plugin && You can delete packaged directories and customize deletion rules
$ npm install rollup-plugin-del -D
$ yarn add rollup-plugin-del -D
$ pnpm install rollup-plugin-del -D
globimport del from 'rollup-plugin-del' export default defineConfig({ input: resolvePath('../src/index.ts'), plugins: [ del(), // del({dest: path.resolve(__dirname, "dist/**/*.js")}) ts(), babel({ babelHelpers: 'bundled' }), nodeResolve(), commonjs(), terser() ], output: [ { file: resolvePath('../dist/index.esm.js'), format: 'esm' } ] })