Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Simple React Hot Loading example with Hapi Server-side rendering

License

NotificationsYou must be signed in to change notification settings

codeBelt/hapi-react-hot-loader-example

Repository files navigation

hapi-react-hot-loader-example

Example universal/isomorphic application demonstrating react-hot-loader-3 with webpack-3, react and friends, async code splitting, and hapi.

Check out the TypeScript version here

Found this usefull? give it a ⭐

Windows users see the last section of this README

get started

  1. $yarn
  2. $yarn dev
  3. http://localhost:3000

dev tasks

  • $yarn lint (eslint)
  • $yarn dev (local development w/ server)

Typers with a carriage return to restart nodemon if you make changes to theserver.js file or any files within theserver folder. It's not efficient to automatically restart nodemon on file changes.

Note: Saga's do not hot load. You will have to reload the browser.Read more about potential issues and/orimplement yourself.

production tasks

  • $yarn prod (production build w/ server)
  • $yarn prod:build (production build)

staging tasks

  • $yarn staging (staging build w/ server)
  • $yarn staging:build (staging build)

Other features/examples I am working:
  • Jest / Enzyme

Window Users

Use $yarn devWindows during development. Noters to restart nodemon will not work on windows.

If you wantrs to restart nodemon you will need to runyarn watchServer andyarn devServer in two separate terminals.


[8]ページ先頭

©2009-2025 Movatter.jp