Skip to content

Netlify-cli is very bloated #4556

Closed
Closed
@RDIL

Description

@RDIL

Which problem is this feature request solving?

Netlify CLI is very, very big. It consumes roughly 194 megabytes of disk space when installed. This is easily one of, if not the biggest dependencies that a project can have. It would really benefit it to be smaller (faster install times, faster runtime environment, etc). Docusaurus removed it because of that: facebook/docusaurus#7216

This is a graph of all the dependencies present from a single install of netlify-cli:
Screen Shot 2022-04-20 at 10 38 34

Describe the solution you'd like

Ideas:

  • Bundle all the code, and run it through a minifier first, removing all dependencies from the package (when installed by consumers) - also use source maps to keep stack traces and such in-tact
  • Evaluate the dependency chain thoroughly to use smaller and less bloated packages

Pull request (optional)

  • I can submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions