项目作者: nicohsieh

项目描述 :
A simple light boilerplate with Preact powered by Webpack
高级语言: JavaScript
项目地址: git://github.com/nicohsieh/preact-splash-page-boilerplate.git


Preact Splash Page Boilerplate

🕊️ This is a simple light weight boilerplate with Preact and powered by Webpack. It aims for static splash pages or social bounce pages that need to be very light and don’t require complexity like routes or global states.

This boilerplate includes:


Start Guide

Installation

Clone the project and go into the directory

  1. git clone https://github.com/nicohsieh/preact-splash-page-boilerplate.git my-splash-page
  2. cd my-splash-page

Make it yours!

  1. rm -rf .git && git init && npm init

Install the dependencies

  1. npm install


Development

Start a webpack dev server at :8000

  1. npm start

Build production code into dist folder

  1. npm run build

Start a local server at dist folder at :8080 to check the build

  1. npm run start:dist

License

MIT