0.1.2 • Published 1 year ago

vite-plugin-bundle-monitoring v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

vite-plugin-bundle-monitoring

npm i -D vite-plugin-bundle-monitoring

Plugin for vite to monitor changes in bundle size.

Executed after the build is complete and compares the current files with the previous ones. img.png

Get start

To use, you just need to add it to plugins in Vite config

import VitePluginBundleMonitoring from 'vite-plugin-bundle-monitoring';


export default defineConfig({
    plugins: [
        VitePluginBundleMonitoring({
            compareFileDir: path.resolve(__dirname, 'compare'),
        }),
    ],
})

If you want the size to be calculated from new data, simply delete or move the old data to another location.

PluginOptions

type VitePluginBundleMonitoringOptions = {
    compareFileDir?: string;   // default: __dirname
    compareFileName?: string;  // default: vite-bundle-monitoring.compare.json
}
0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago