Support for fork-ts-checker-webpack-plugin / thread-loader #160
Description
Would you be interested in a PR that adds support for fork-ts-checker-webpack-plugin and thread-loader? I mention it as I'm about to start a new project and was planning to use this as my starting point. For now I'm planning to eject post create to add in fork-ts-checker-webpack-plugin and thread-loader as I like faster builds where possible. But I can see how this might generally be useful to users of this fine project. I'd be happy to submit a PR if that's interesting to you?
https://medium.com/webpack/typescript-webpack-super-pursuit-mode-83cc568dea79
FWIW I think support would simply be added by editing these 3 files:
- https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/config/webpack.config.dev.js
- https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/config/webpack.config.dev.js
- https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/package.json
Also, if you did decide this was interesting it also opens up a choice about tslint. The fork-ts-checker-webpack-plugin
allows the option to run tslint for you as well as type checking. So you could (if you chose) remove usage of tslint-loader and just have fork-ts-checker-webpack-plugin
do that job too. Or not - these are all choices 😄