Skip to content

Developmint/nuxt-bundle-buddy

Repository files navigation

Nuxt Bundle Buddy - Don't fight your webpack bundle, become friends!

npm (scoped with tag) npm Build Status codecov Dependencies js-standard-style thanks

example

📖 Release Notes

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 to modules section of nuxt.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 or npm run build -- --analyze)

Options

// file: nuxt.config.js
export default {
  bundleBuddy: {
    removeDefaultAnalyzer: true // disable to keep default webpack analyzer
  }
}

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Alexander Lichter

About

Don't fight your webpack bundle, become friends!

Resources

License

Stars

Watchers

Forks

Packages

No packages published