Build
It is easy to build the spear project. You just execute yarn build
command.
# yarn install
# yarn build
....
[Parse Pages]
[Page]: index(/)
[Page]: articles/index
[Page]: /index
[Sitemap]: /sitemap.xml
The generated directory is dist
by default. You can check this directory.
Dev mode
Spear has dev mode which has hot-realod feature. If you type yarn dev
command, Spear will be started as dev mode.
# yarn dev
...
[Parse Pages]
[Page]: index(/)
[Page]: articles/index
[Page]: /index
Server started on port 8080 🚀
You can access the following URL:
http://localhost:8080
You can check generated site by accessing http://localhost:8080.
Note that:
- If your machine use 8080 port, this dev mode failed. If you faced
8080 is already in use.
error, you should check local environment.- In this case, you can change port via settings file. For detail, see install document.