1

Hey guys, is there an easy way to avoid having all that bunch of stuff node_module comes with when you create a React project. Shit consumes more that 200mb on the fly. Do I fucking need all that stuff packed inside node_module?

Comments
  • 0
    React is a large framework so it uses a lot of space... Build tools are probably also in there. You can use Preact (a lightweight version of react) but choose wisely (consider the consequences before making such decision)
  • 2
    If you're not developing the project rm -rf the node_modules if you need the space. If you're still developing and need the space buy an external drive and put your hentai on that. And if you reach space problems again, use something like rdfind and harlink that shit bruh
  • 2
    Welcome to the BS that is modern JS.
  • 1
    How about you include vuejs in the html head
  • 0
    @hinst node modules is not part of react. React uses node modules.

    The reason node modules are so big is that it defaults to download very much.
  • 0
    If you are working on only one project at a time, you can create-react-app only once and create multiple apps inside it, just change the webpack file accordingly, after development, take the build out and use it.
  • 1
    @prasanna1997 this sounds like the best thing to do.
  • 0
    @Voxera OK. Thanks for the clarification 🙏
  • 0
    @Root haha, mehn but unfortunately we're stock with it and funny enough is no matter how much one dislikes it, you gotta need to use it eventually.
  • 0
    @inaba cool. Thanks will consider this
  • 0
    @hinst OK, thanks
  • 0
    @IkemCode Protip: you can reply to multiple people in the same comment!
Add Comment