To reduce the number of chunks of your project build with Nuxt.js add the next lines:
if (!this.dev) {
config.plugins.push(new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 3
}))
}
right under extend (config, ctx) {
of nuxt.config.js
.
Then build your project with npm run build
. Et voilà, No more than 3 chunks :-)