Minimizing Bundle Sizes in React

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2024
  • How to Minimize Bundle Size in React?
    In this screencast, we’ll be looking at how to speed up your React app by shrinking JavaScript bundle sizes. By the end of this screencast you’ll be able to configure Webpack to minimize how much data your users need to download.
    Watch more screencasts by Big Nerd Ranch on The Frontier
    thefrontier.bignerdranch.com/...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 18

  • @the_not_so_dark_knight
    @the_not_so_dark_knight 2 ปีที่แล้ว

    point to point and efficient ty

  • @akashnag3879
    @akashnag3879 4 ปีที่แล้ว

    thank you very much...

  • @lukasmuller2737
    @lukasmuller2737 5 ปีที่แล้ว

    Nice video, short but sufficient 👍

  • @christianangelomsulit3759
    @christianangelomsulit3759 4 ปีที่แล้ว +4

    What's the changes in package.json?

  • @martingruebler443
    @martingruebler443 4 ปีที่แล้ว

    very good

  • @lvleminckx
    @lvleminckx 2 ปีที่แล้ว +2

    Nice video. Question that immediately pops to my mind : are all those optimizations built in the create-react-app boilerplate ? (i'll check that eventually)

  • @muhammadnasir9515
    @muhammadnasir9515 4 ปีที่แล้ว +7

    Where is github repo?

  • @S4LTYT
    @S4LTYT 2 ปีที่แล้ว

    hello sir . how we can make three files webpack dev prod and common and attach to our react app like you are doing

    • @jannismorgenstern7842
      @jannismorgenstern7842 2 ปีที่แล้ว

      There is a module called webpack-merge: www.npmjs.com/package/webpack-merge

  • @xtheory9640
    @xtheory9640 3 ปีที่แล้ว +1

    1. Node_env production mode
    2. plugin (uglyfyjs)
    3. tree

  • @neeraja3875
    @neeraja3875 4 ปีที่แล้ว

    setting webpack.DefinePlugin() option not reducing the bundle size.

    • @sathvikreddy3573
      @sathvikreddy3573 4 ปีที่แล้ว

      same here. were you able to figure out why?

  • @theroyal1914
    @theroyal1914 3 ปีที่แล้ว

    I am subscribe you now, I will try it latter. 😅

  • @aaron___6014
    @aaron___6014 3 ปีที่แล้ว +1

    Didn't reduce the size of my bundle.
    use: {
    loader: 'babel-loader',
    options: {
    presets: [
    ['@babel/preset-env', {'modules': false}],
    '@babel/preset-react',
    ],
    },
    },

    • @josephcoyle8126
      @josephcoyle8126 2 ปีที่แล้ว

      You may be able to set Webpack mode to "development", build, then use DevTools to inspect sources--the comments near the top of the code should specify if a module will be kept/removed. Code Radiance has a video on Tree Shaking which shows how to do this

  • @atif5752
    @atif5752 3 ปีที่แล้ว +1

    Everyone must read this if webpack.definePlugin not working:
    reactjs.org/docs/optimizing-performance.html#webpack