Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 582 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 582 Bytes

Overview

This application is built on hapi with es6, react, redux, and webpack.

This is a simple example of providing server side rendering of universal react views with CSS, but without requiring webpack to compile the server code as well.

To accomplish server side rendering without using webpack, the entire project is transpiled using babel. Once this is done, webpack is run on the transpiled code to bundle the client side. Finally, the npm start script uses the hook css-modules-require-hook/preset to handle css imports in react views when rendering server side.