Use webpack on server & get rid of server hacks (cp files and ignore-styles)
Remove if it doesn’t make sense after implementation.
- Reasons to pack the server:
- CSS and SVG import issue
- SVG optimization pipeline
- Fewer files to distribute
- Environment configurations can be baked in as wanted
- Nice tool for watching development changes without restarting the world (right now the server restarts for every change in common which is normally where changes happen and life sucks)
- What works in the client works in the server and vice versa
- And reasons against: Webpack is complicated
ac
- Compilation for the server in development happens with webpack and the watch mode works
- Compilation for the server in production happens with webpack
- Tests still work fine