An experiment in generating a static site from react
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dev
elements
pages
posts New Blog, Posts and Moment elements and PathsMixin Jan 12, 2015
public
.gitignore
bower.json
build.js
package.json
paths.js
publicServer.js
readme.md
server.js
webpack.config.js

readme.md

You can read a detailed explanation of this experiment on my blog.

Setup

After cloning this repo run npm install && bower install to install dependencies

Note: dev/bundle*.js etc have been committed purely to have a complete example. they will be rewritten on run and would normally be git ignored.

Run in dev mode

npm start

Add a new post

  • update paths.js data
  • add md file in posts/ directory

Build for production

npm run-script build-static