Giter VIP home page Giter VIP logo

Comments (2)

natemoo-re avatar natemoo-re commented on April 28, 2024 3

Thank you! I really appreciate issues like this. I will absolutely be focusing on reducing the Microsite's installation footprint.

  • There's no (good) reason for prettier to be in there, I can remove that easily
  • Users should be prompted to install postcss locally, similar to Next.js

Honestly I think that will take most of the packages in this list out of the equation.

from microsite.

natemoo-re avatar natemoo-re commented on April 28, 2024

Here is the packagephobia report on the old dependencies, and the packagephobia report on the new dependencies.

I removed the following direct dependencies in v1.1.0 (see #94), which should also remove most of the nested dependencies from your screenshot:

  • prettier 8.66MB
  • postcss-preset-env 6.45MB
  • postcss-cli 2.62MB
  • postcss 1.03MB
  • @snowpack/plugin-postcss 246kB
  • postcss-flexbugs-fixes 9.18kB
  • Total 19.02MB

This is something I'll be paying more attention to moving forward. Currently Microsite is just compiled with tsc, but I'm sure using Rollup to bundle and treeshake would help significantly. Once that's setup I can probably cut down the dependencies to snowpack and preact.

I'm going to close this and track future improvements in #95.

from microsite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.