Giter Site home page Giter Site logo

Comments (6)

samnang avatar samnang commented on August 15, 2024

👍

from react-webpack-rails-tutorial.

justin808 avatar justin808 commented on August 15, 2024

https://www.youtube.com/watch?v=Pq1RD22W7B4#t=55s

I vote for lodash.

CC: @jdalton

from react-webpack-rails-tutorial.

justin808 avatar justin808 commented on August 15, 2024

More on lodash: https://github.com/Khan/style-guides/pull/28/files#files

and Khan/style-guides#43

My personal preference is to lean on lodash for consistency. It's a lot of work to keep track of both, and like using the linters, I prefer consistency.

from react-webpack-rails-tutorial.

justin808 avatar justin808 commented on August 15, 2024

@josiasds I put your name on this one. Should be quick.

@alexfedoseev if we put lodash in the vendor bundle, I'm pretty sure that parts we don't user don't get stripped out. That's a need for jQuery. I'm thinking we could have a generated/vendor-optimized.js bundle that has all the other libraries we include with unused stripped out.

I'd like to be able to see the project, non-vendor, code in it's own generated file, as that's useful for explaining what Webpack does.

from react-webpack-rails-tutorial.

robwise avatar robwise commented on August 15, 2024

I know it's nice to have the webpage download as small as possible, but how many KB are we talking about here? If we use half of the lodash library and leave the other half unused, we'd be foregoing, what, 9KB of savings by just importing all of it?

from react-webpack-rails-tutorial.

justin808 avatar justin808 commented on August 15, 2024

Fixed in #147

from react-webpack-rails-tutorial.

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.