yarn
$(yarn bin)/preact watch
: start a dev server
$(yarn bin)/preact build --no-prerender
: build an app
$(yarn bin)/preact serve
: serve the app locally
Note: If you have issues running the above Preact commands, try running them using npm-run
e.g.: npm-run preact watch
To install npm-run: npm i -g npm-run