Reduce Size of Large, React based Single Page Application's Browserify Bundle File
问题 I am building a reactjs application using gulp and Browserify. I have used material-ui components in my application. There are 8 pages in my application using different components. The build.js created by Browserify is 4mb in size. I want to reduce its size. I have searched and learned a little about the lazy loading design pattern. But I am confused how it should be used to make the size smaller of my application? I am also using react router in my application so there are 8 routes defined.