catamphetamine / webpack-isomorphic-tools

Server-side rendering for your Webpack-built applications (e.g. React)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isomorphic tools for multiple dev servers?

arasmussen opened this issue · comments

In development mode I have multiple webpack dev servers:

  • landing.config.js (mysite.localhost:8007)
  • widget.config.js (widget.mysite.localhost:8007)
  • subdomain.config.js (*.mysite.localhost:8007)

Is there some way I can combine the webpack-assets across all three instead of having one for each? And then create a server for all assets somehow?

I actually realize that I only need webpack-isomorphic-tools in prod and I combine everything into a single webpack config file for prod, so I ended up just disabling webpack-isomorphic-tools in dev mode. I only really need SSO in prod anyway.

This also makes me wonder why I need multiple files in dev but only one in prod, something to look into later. :P Thanks anyhow!