minista
v3.1.6
Published
Static site generator with 100% static export from React and Vite
Downloads
679
Maintainers
Readme
minista
Site & Documentation
https://minista.qranoko.jp
About
minista(ミニスタ)は React の JSX から綺麗な HTML を作る日本製のスタティックサイトジェネレーターです。
How To Use
Automatic Setup
$ npm create minista@latest
Manual Setup
$ npm install --save-dev minista react react-dom
$ touch ./src/pages/index.jsx
// ./src/pages/index.jsx
export default function () {
return <h1>Hello!</h1>
}
package.json
を開き、以下のスクリプトを追加します。
"scripts": {
"dev": "minista",
"build": "minista build",
"preview": "minista preview",
}
Commands
| コマンド | 内容 |
| ----------------- | ------------------------------- |
| minista
| 開発モード(Ctrl + C
で停止) |
| minista build
| 静的書き出し |
| minista preview
| 静的書き出し後の動作確認 |
License
- MIT