unplugin-record-time
v0.0.1
Published
Time reporting for Vite/Rollup/Webpack project.
Downloads
7
Maintainers
Readme
unplugin-record-time
Time reporting for Vite/Rollup/Webpack project.
Install
npm i -D unplugin-record-time
// vite.config.ts
import recordTime from 'unplugin-record-time/vite'
export default defineConfig({
plugins: [
recordTime({ /* options */ }),
],
})
Example: playground/
// rollup.config.js
import recordTime from 'unplugin-record-time/rollup'
export default {
plugins: [
recordTime({ /* options */ }),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-record-time/webpack')({ /* options */ })
]
}
// nuxt.config.js
export default defineNuxtConfig({
modules: [
['unplugin-record-time/nuxt', { /* options */ }],
],
})
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-record-time/webpack')({ /* options */ }),
],
},
}