A static site builder based on bundler and reenact
First install wit npm i -g @konekto/static.
Then build the site using static build <src> <dest>.
static will compile every directory containing these files:
index.jsx: will be converted toindex.htmlwith the bundled scripts and stylesclient.jsx: will be the bundledclient.jsstyles.styl: will automatically be loader and compiled toclient.css
See the example folder for a better idea of how the page are structured.
Run static serve example\pages build to see the example in action.
For the document head static provides a React library based on react-helmet.
import React from 'react';
import { Title, Meta } from '@koenkto/static/document';
export default function App() {
return <div>
<Title>Hi</Title>
<Meta name="description" content="start page" />
<h1>Hello World!</h1>
</div>;
}static includes a dev server with hot-relaoding support for development.
Just use the command static serve <src> <dest>.