Home

Issue: 2575

Build minimal Node.js app without Nuxt dependency

[issue link]

Right now a production build weighs 100+ megabytes even for the simplest Nuxt application. I wonder if there’s a way to create smaller deployments.

What I’m looking for is a way to build a web app:

  • that’s a simple Node application (that can be started with $ node main.js or something alike)
  • that contains all the files required (images, static files, etc.)
  • that doesn’t depend on Nuxt or any development package
  • that optionally doesn’t include the original client-side JS source, only the packed bundle
  • but still does everything that a Nuxt application does.

I come from Meteor, which does something similar via meteor build.

The reason I’m curious is that smaller packages make Docker-based build/distribute/deploy pipelines faster, also I believe deploying unnecessary dependencies (eg. Babel transpilers) increase the attack surface, too.

This question is available on Nuxt.js community (#c2243)