webpack Configuration

Lets get webpack configured

webpack Analyzer

Nuxt.js use webpack-bundle-analyzer to let you visualize your bundles and how to optimize them. This is all setup for you so the only thing you have to do is run it.

You can create a script in your package.json


      "analyze": "nuxt build -a"
    

Or you can just type:


      npm run build -- -a
    

The analyzer will open a separate window for you to analyze your code

github