R
R
RusTorg2017-02-07 22:14:03
Node.js
RusTorg, 2017-02-07 22:14:03

SPA, what to do with fat bundle.js?

Wrote a spa with routing on react-router.
Now all the code is rendered into one /build/bundle.js.
Is it possible to somehow break it into pieces and so that when I route to / I don’t load components from / about, which, for example, will be in / build/chunk.about.js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-02-08
@k12th

In webpack, this is called code splitting .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question