I am using react.js with laravel and I found in public/js/app.js the file size is 50 MB.
How can I reduce the size of this file?
For further actions, you may consider blocking this person and/or reporting abuse
I am using react.js with laravel and I found in public/js/app.js the file size is 50 MB.
How can I reduce the size of this file?
For further actions, you may consider blocking this person and/or reporting abuse
Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.
Anna Golubkova -
Bob Cars(on) -
Rachel Duncan -
Anton Martyniuk -
Top comments (2)
You should look at some sort of treeshaking process and ensure that you are using a decent bundler. Also, ensure that you are using a production build of React when you run this metric. Development builds are considerably heavier than a true production build. Happy Coding!
webpack.js.org/guides/tree-shaking/
reactjs.org/docs/optimizing-perfor...
Look at your dependencies, what dependencies are you using in your react app? Maybe you bundle more than you need.