coala / gh-board

:octocat: Kanban for GitHub Issues
https://coala-gh-board.netlify.com/
GNU Affero General Public License v3.0
21 stars 25 forks source link

Enable source map in production #151

Closed blazeu closed 5 years ago

blazeu commented 5 years ago

Real production apps might not want this, but we want this to ease reviewing of MR preview and easier reporting of bugs in general.

This will give proper stack traces just like in development mode.

blazeu commented 5 years ago

CRA uses cheap-module-source-map in dev

https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/webpack.config.dev.js#L78-L80

and source-map in prod

https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/webpack.config.prod.js#L96-L98

Seems like our config is reversed a bit...

https://github.com/coala/gh-board/blob/38a94ce8e8711369e58502fefda67d4c479afc50/webpack.config.js#L21