meatier
meatier copied to clipboard
RFC: Create a dev:server option
Currently, we've got a dev:client config & a production config that doubles as the dev:server. There's some minor differences between developing on the server & running in production mode. Primarily, how much optimization we do. In production, we wanna optimize the crap outta this thing. When developing on the server, we want a super fast build & a single, readable file. This is especially true when doing difficult debugging on universal components & SSR.
I think a dev:server webpack config would look just like the production config, but without the optimization. It also won't use webpack's HMR on the client, since it'll build the client file for quick restarts. If we move to react-look #141, then we could eliminate the need for a dev:server:build. & maintain 3 webpack builds: 1 for client (HMR), 1 for server (pre-built client), and 1 for production/deployment (pre-build optimized client).
Open to thoughts!