esbuild-serve
Version:
Serve with live reload for esbuild.
77 lines (49 loc) • 1.29 kB
Markdown
<div></div>
//github.com/nativew/serve) with live reload for [esbuild](https://github.com/evanw/esbuild).
<br>
<br>
```zsh
npm install esbuild-serve -D
```
<br>
`esbuild.config.js`
```js
import esbuildServe from 'esbuild-serve';
esbuildServe(
{
// esbuild options
},
{
// serve options (optional)
port: 7000,
root: '.'
}
);
```
`package.json`
```json
{
"type": "module",
"scripts": {
"start": "node esbuild.config.js -w",
"build": "node esbuild.config.js"
}
}
```
<br>
[ ](https://github.com/nativew/serve) → Ultralight http server with live reload.
<br>
[ ](https://github.com/nativew/esbuild-plugin-pipe) → Pipe esbuild plugins output.
[ ](https://github.com/nativew/esbuild-plugin-babel) → Babel plugin for esbuild.
[ ](https://github.com/nativew/esbuild-plugin-postcss-literal) → PostCSS tagged template literals plugin for esbuild.
<br>
[ ](https: