@epiijs/client
v1.1.0
Published
A simple React client runtime.
Downloads
13
Readme
@epiijs/client
A simple React client runtime.
- sealed entry for single page application
- optional file-system based router (WIP)
Install
npm i @epiijs/client --save-dev
Usage
project like this
(root)
├─ src
│ ├─ .epiijs
│ │ └─ (auto-generated)
│ ├─ (others)
│ ├─ index.tsx
│ └─ index.less
└─ start.ts
start client dev server or build client
import { startClient } from '@epiijs/client';
const appConfig = {
name: 'your-client',
path: {
root: __dirname // or getDirNameByImportMeta
}
};
startClient(config);
buildClient(config);