Sanshain / preact-boilerplate

preact boilerplate
0 stars 0 forks source link
boilerplate cssmodules preact preact-router rollup ssr styled-components typescript

preact-rollup bolilerplate

Features:

Setup

  1. Clone the repo

    git clone https://github.com/Sanshain/preact-boilerplate.git && cd project-templates
  2. Install the deps

    npm i
  3. Compile

    rollup -c

Prerender (SSR) usage:

CLI

npm start

Launch a dev server at localhost:3000 and reload on file changes.

npm run build

Build a production bundle in release folder.

npm run serve

Serve production assets on localhost.