React-boilerplate: Disable Code Splitting for production

Created on 7 Mar 2017  路  3Comments  路  Source: react-boilerplate/react-boilerplate

Hi,

I know this sounds odd, but is there a nice way to disable the Code Splitting and just have one huge main.js? Asking for a friend...

Thanks,
Christian

Most helpful comment

In app/routes.js, if you import the containers in the top scope, import <container> from 'path', and then use component instead of getComponent in the routes config, it should effectively disable code splitting.

All 3 comments

In app/routes.js, if you import the containers in the top scope, import <container> from 'path', and then use component instead of getComponent in the routes config, it should effectively disable code splitting.

Thanks @GGAlanSmithee that did the trick :)

Closing

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gihrig picture gihrig  路  3Comments

smiile picture smiile  路  3Comments

loicginoux picture loicginoux  路  4Comments

hieubq90 picture hieubq90  路  3Comments

chaintng picture chaintng  路  4Comments