Open Mobilpadde opened 3 years ago
I've requested this directly in the Telegram group. Though I didn't know how long to wait, so I decided to give it a go myself.
I decided to use chokidar as fs.watch can give problems on some platforms.
fs.watch
dev
clio
clio.toml
[npm.devDependencies] rollup = "^2.56.2" clio-rollup = "latest" "@babel/preset-env" = "^7.15.0" serve = "latest" [npm.scripts] host = "node .clio/host.js" build = "rollup -c" dev = "rollup -c -w" start = "npm run build && serve public"
Instead of using sirv it's using serve, as sirv didn't reflect new changes to the built code.
sirv
serve
Note, this is the first large PR in forever. Hopefully it's done correctly :+1:
Description
I've requested this directly in the Telegram group. Though I didn't know how long to wait, so I decided to give it a go myself.
I decided to use chokidar as
fs.watch
can give problems on some platforms.Changes proposed in this pull request
dev
command added - this will watch for changesclio
-files.clio.toml
as seen belowInstead of using
sirv
it's usingserve
, assirv
didn't reflect new changes to the built code.ToDo