Nuxt Bundle Buddy - Don't fight your webpack bundle, become friends!
Features
- Analyzes your bundle and visualize improvement opportunities
- Built on top of bundle-buddy
- Fully tested!
- Nuxt 2 support
Setup
- Install
bundle-buddy
globally, otherwise you won't see anything - Add the
nuxt-bundle-buddy
dependency using yarn or npm to your project - Add
nuxt-bundle-buddy
tomodules
section ofnuxt.config.js
:
modules: 'nuxt-bundle-buddy' bundleBuddy: // your settings here // Usually you don't need any though, so you can fully omit the // bundleBuddy object
- Run a Nuxt analyze build (
yarn build --analyze
ornpm run build -- --analyze
)
Options
// file: nuxt.config.js bundleBuddy: removeDefaultAnalyzer: true // disable to keep default webpack analyzer
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Alexander Lichter