kyt-starter-static

This starter-kyt should serve as the base for an advanced client-rendered React app.

Usage no npm install needed!

<script type="module">
  import kytStarterStatic from 'https://cdn.skypack.dev/kyt-starter-static';
</script>

README

Static React starter-kyt

This starter-kyt should serve as the base for an advanced client-rendered React app.

Installation

$ yarn add kyt
$ yarn kyt setup

Select static from the list of starter-kyts

Tools

The following are some of the tools included in this starter-kyt:

Notes on implementation

  • You will find a src/index.ejs file which gets compiled to an html file by the html webpack plugin. See more for configuration in the kyt.config.js. After a build, kyt will copy the html build into build/public.

  • Assets from src/public are accessible from / in both dev and production (build).

  • Note, if your site uses routes, dev is configured with the history api fallback to support routing. In production (after a build), you will need to setup an edge/server, like nginx or Varnish, to forward routed requests to your build/index.html.

How To Contribute

Want to build your own starter-kyt? See directions here.