This project was bootstrapped with Create React App.
This project was inspired by awesome ssr-create-react-app-v2 and powerful react-redux-universal-hot-example
I recently use ssr-create-react-app-v2 but got stuck in the fact that it's difficult to make customized configurations (and also the repo seems to be not active). So I came up with an idea to develop 'another' boilerplate. And, here it is!
This boilerplate is similar as ssr-create-react-app-v2 which was bootstrapped with Create React App. The difference is that I ejected the CRA so I can use my own custom configurations (though it's not recommended).
yarn install
yarn build
yarn run dev
yarn run win-dev
yarn run prod
yarn run win-prod
yarn start
By default, the PWA feature is active. But if you don't want to use it, you can deactivate it by removing registerServiceWorker() function inside src/index.js.
SSR is not available if you run yarn start. It's only available if you run yarn run dev or yarn run prod. But you have to run yarn build first.
Hot reload is only supported if you run yarn start.
CSS Modules is supported, even in SSR mode.. (*yeay!)
This boilerplate uses some codes from ssr-create-react-app-v2 and react-redux-universal-hot-example without any commercial purpose.
But please do let me know if this meets copyright infringement!
If you have any idea to improve this boilerplate, especially to solve the limitation that this boilerplate has, please feel free to contribute! Thanks.