Minimal Development Server with Live Reload Capability.
(Yet Another Live Server)
- Rewritten in Golang
- Supportive tool for esbuild
- github actions
- npm install test on Windows and OSX
- support recursive watch
- accept json config file, and more dynamic config options like live-server
- refresh css only
- example project with esbuild
# global
$ npm i -g yalive-server
# As node package
$ npm i -D yalive-server
# Help
$ yalive-server
# example dev command
$ yalive-server dev -c '{"root": "dist", "port": 5501, "cors": true, "https": true, "historyApiFallback": true, "proxy": [{"prefix": "/api", "target": "https://backend", "changeOrigin": true}], "server": {"debug": true, "color": true} }'
const yaliveServer = require("yalive-server")
const conf = {
root: 'dist',
port: 5501,
cors: true,
https: true,
historyApiFallback: true,
proxy: [
{
prefix: '/api',
target: 'https://backend',
changeOrigin: true,
},
],
server: {
debug: true,
color: true,
},
}
yaliveServer.dev(conf)