# vite-plugin-remove-console **Repository Path**: yiming_chang/vite-plugin-remove-console ## Basic Information - **Project Name**: vite-plugin-remove-console - **Description**: 生产环境删除所有指定console类型的vite插件,也可以自定义需要删除的语句,比如debugger等等 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-06-16 - **Last Updated**: 2023-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
生产环境删除所有指定console类型的vite插件
简体中文 | [English](./README.md) ## 🚀 特性 #### ⚡ **高精准、零侵入**: 精准又完整剔除代码中指定的 `console` 类型,目前支持剔除文件格式 `.js`、`.ts`、`.jsx`、`.tsx`、`.vue`、`.svelte` #### 🧪 **完善的示例**: 目前我们在 [playgrounds](https://github.com/xiaoxian521/vite-plugin-remove-console/tree/main/playgrounds) 文件夹中加入了 `nuxt3`、`preact-js`、`preact-ts`、`react-js`、`react-ts`、`solid-js`、 `solid-ts`、 `svelte-js`、`svelte-ts`、`vue-js`、`vue-ts` 示例,零使用成本 #### 🦾 **可配置**: | **配置项名称** | **必传** | **含义** | **类型** | **举例** | | :-------------- | :------- | :----------------------------------------------------------- | :-------------- | :----------------------------------------------------------- | | `external` | 否 | 代表某些文件不进行删除指定 `console` 类型的操作 | `Array