3 ms·
I struggled for a while between create-react-app, and other boilerplates. Last month, prior to a GraphQL rewrite, I dove in and stripped out our build stack, an
by HorizonXP 10y ago
I struggled for a while between create-react-app, and other boilerplates. Last month, prior to a GraphQL rewrite, I dove in and stripped out our build stack, and rewrote it to use Webpack 2.
Webpack is not easy, and it definitely took some reading and some work. But the documentation has become a lot better, and I was able to get it working extremely well. Now, I have the following features working:
- react-router integration
- redux
- server-side rendering
- vendor bundle to help with caching
- automated CI builds
- Docker to Kubernetes deployments
I would really suggest learning Webpack 2 and starting with a very simple toy project. Start adding features to it, and then you'll start to understand how everything fits together. Then you can take those learnings and apply them to your other projects. Once you get it, it's very powerful.