CrocoDillon / universal-react-redux-boilerplate

Step by step creation of a Universal React + Redux Boilerplate
Other
176 stars 33 forks source link

How can I do code splitting in this framework ? #28

Open mohamedfasil opened 7 years ago

CrocoDillon commented 7 years ago

I'll look into this next weekend. Should be as easy as updating the Webpack config though, nothing magical going on (except that Webpack itself is pretty magical if you ask me) 😅

pailhead commented 7 years ago

I've added a vendor entry point along with a CommonsChunkPlugin, followed by:


        <script src={ javascript.vendor } /> //add this
        <script src={ javascript.app } />

in /src/modules/App/Html.js

mohamedfasil commented 7 years ago

Any update on this, I'm trying to acheive route based code splitting