M
M
mr_drinkens2017-06-11 10:51:55
React
mr_drinkens, 2017-06-11 10:51:55

How to setup webpack+yarn+react?

Hello.
A bit of a noob question, but still.
There is an application on React + Redux.
package manager - yarn.
First I used npm. The build was compiled as: npm run build.
I didn't use WebPack, but when uploading the application, I noticed that the build size is about 1mb, which is quite a lot. I read articles where it is indicated that with the help of WebPack, you can compress the final build to several hundred kb.
Can anyone describe how to do this? How to connect webpack and compress the final build?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2017-06-11
@gadfi

create-react-app
though the final file is still not small and a few hundred kilobytes are close to 500, but it also depends on the project ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question