vite-plugin-output
v1.1.8
Published
A vite plug-in that, when building a package, outputs the duration of the package and the size of the file after the package
Maintainers
Readme
vite-plugin-output
这是一个 vite 插件,在打包时可输出打包用时和打包大小; npm i vite-plugin-output
使用效果
会在控制台输出, 如下信息:
🎉🎉 恭喜打包完成,总用时: 0分0秒493毫秒 🎉🎉, 打包后的大小为 111.919 KB下载使用
npm i vite-plugin-output使用示例
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 其他信息...
// 引入
import VitePluginOutput from 'vite-plugin-output'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
// 其他信息...
VitePluginOutput() // 使用
],
})