// npm
npm i vite-perfect-console-plugin
// yarn
yarn add vite-perfect-console-plugin
// pnpm
pnpm i vite-perfect-console-plugin
// vite.config.ts
import VitePerfectConsolePlugin from 'vite-perfect-console-plugin'
defineConfig({
plugins: [
//...plugins
// tip 默认是 🐷🐷🐷🐷🐷🐷
VitePerfectConsolePlugin({ tip: '🐷🐷🐷🐷🐷🐷' }),
],
})
![](https://camo.githubusercontent.com/9e67750559d9c30328ce69e8e4b6c8021cd086cc096b5a0b50e8d0217e84ac00/68747470733a2f2f66696c65732e6d646e6963652e636f6d2f757365722f32333638362f39623861646537352d333961382d343061362d623231392d3865396236346564653033392e706e67)
// npm
npm i babel-plugin-perfect-console
// yarn
yarn add babel-plugin-perfect-console
// pnpm
pnpm i babel-plugin-perfect-console
// babel.config.js
module.exports = {
plugins: [
// ...plugins
[
'perfect-console',
// tip 默认是 🐷🐷🐷🐷🐷🐷
{
tip: '🐷🐷🐷🐷🐷🐷',
},
],
],
}
![](https://camo.githubusercontent.com/9e67750559d9c30328ce69e8e4b6c8021cd086cc096b5a0b50e8d0217e84ac00/68747470733a2f2f66696c65732e6d646e6963652e636f6d2f757365722f32333638362f39623861646537352d333961382d343061362d623231392d3865396236346564653033392e706e67)