- Analyzes your bundle and visualize improvement opportunities
- Built on top of bundle-buddy
- Fully tested!
- Nuxt 2 support
- 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
)
// file: nuxt.config.js
export default {
bundleBuddy: {
removeDefaultAnalyzer: true // disable to keep default webpack analyzer
}
}
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c) Alexander Lichter