/slob

A wip starter for react, react-router, webpack, code splitting, HMR, SCSS, react-intl, etc

Primary LanguageJavaScript

Slob

🐌

Trying out a bunch of libraries and tools to see how well they fit together.

To start the webserver

Available at http://127.0.0.1:8080

nodemon server.js

To start webpack in dev mode

This will start a webpack dev server, which will proxy the actual site from another address (and serve the webpacked assets itself).

npm run dev

To deploy assets

This will write asset files (html, css, js) to the ./dist folder.

npm run deploy

💃

Goals

  • Hot Module Replacement 🔥
  • Code splitting on modules
  • i18n
  • No ../../../
  • Modernizr
  • Example test
  • Dev: JS Sourcemaps
  • Prod: Minified assets
  • Dev: SCSS Sourcemaps
  • Code splitting on routes
  • A lazy loaded widget example
  • Prod: separate config
  • Prod: No sourcemaps
  • Prod: Cachebusting