wake me when it's quitting time
This project is deprecated. Use next.js, etc.
create performant server-rendered React applications with no build configuration; ideal for universal react-router projects.
sambell
came first! commit history proof :stuck_out_tongue_closed_eyes:Both create-react-app and next.js are great projects, try them! I like aspects of both. But you don't get a universal react-router application out of the box.
Check out the template!
yarn global add sambell
sambell new app
cd app
yarn start
Dev experience
css-modules
, and eaiser to work with for a universal application (critical styles, etc).Performant
react-loadable
(forked version @humblespark/react-loadable
).<script async />
) loading of all webpack scripts.Async components
react-loadable
@humblespark/react-loadable
) to work with server side webpack build & a fix for checksum mismatch.const Moon = Loadable(() => import(/* webpackChunkName: "components/Moon" */'components/Moon'));
Webpack / Babel
import App from 'App'
.isomorphic-fetch
, babel-polyfill
Configurable
*gerty.js (basic configuration to control where stuff goes)
module.exports = {
clientEntry: 'client',
serverEntry: 'server',
clientOutputDirectory: '.sambell/client',
serverOutputDirectory: '.sambell/server',
publicPath: '/static/webpack/',
webpack: config => config,
};
:rocket: -> :no_entry_sign: :earth_americas:
:alien: