0.3.2 • Published 1 year ago

unplugin-visualizer2 v0.3.2

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

unplugin-visualizer2

NPM version

Visualize and analyze your bundle to see which modules are taking up space. Works with any bundler(current support rollup and vite), powered by unplugin.

Install

npm i --save-dev unplugin-visualizer2
// vite.config.ts
import UnpluginVisualizer2 from 'unplugin-visualizer2/vite'

export default defineConfig({
  plugins: [
    UnpluginVisualizer2({
      /* options */
    }),
  ],
})

Example: playground/

// rollup.config.js
import UnpluginVisualizer2 from 'unplugin-visualizer2/rollup'

export default {
  plugins: [
    UnpluginVisualizer2({
      /* options */
    }),
  ],
}

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-visualizer2/webpack')({
      /* options */
    }),
  ],
}

// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    [
      'unplugin-visualizer2/nuxt',
      {
        /* options */
      },
    ],
  ],
})

This module works for both Nuxt 2 and Nuxt Vite

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-visualizer2/webpack')({
        /* options */
      }),
    ],
  },
}

// esbuild.config.js
import { build } from 'esbuild'
import UnpluginVisualizer2 from 'unplugin-visualizer2/esbuild'

build({
  plugins: [UnpluginVisualizer2()],
})

Usage

Options

For all options please refer to docs.

This plugin accepts all rollup-plugin-visualizer options.

0.3.2

1 year ago

0.3.0

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago