-
Usage styled components via
goober
with minimal runtime (lookApp.jsx
) -
Isolated styles via postcss modules (like
react-css-modules
) -
Typescript out of the box (
ts-config
branch) -
preact-routers
out of the box -
prerender out of the box
-
Created on Preact 10.* + Rollup 2.* + Babel 7 template for SPAs.
- Clone the repo
git clone https://github.com/Sanshain/preact-boilerplate.git && cd project-templates
- Install the deps
npm i
- Compile
rollup -c
- Change
options.prerender
totrue
- Apply
rollup -c
=> will created init.js insiderealese
folder - apply
node init
=> will createdprerender.html
in the same folder
Launch a dev server at localhost:3000
and reload on file changes.
Build a production bundle in release
folder.
Serve production assets on localhost.