olebedev/go-starter-kit

support for code splitting

fanky5g opened this issue · 2 comments

Been trying too hard to achieve code splitting but can't get my way around the window undefined error when rendering on the server.

Is there any way to achieve code splitting using webpack's require.ensure.
or probably another method to circumvent that error.

Obviously, server cannot handle source script loading via script html tag. Use different bundles for client and server.

I'll try to hack that, however if you could show an example to point me in the right direction I'd be grateful.