Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/nativew/esbuild-serve

Serve with live reload for esbuild.
https://github.com/nativew/esbuild-serve

Last synced: 16 days ago
JSON representation

Serve with live reload for esbuild.

Lists

README

        

# esbuild-serve

[Serve](https://github.com/nativew/serve) with live reload for [esbuild](https://github.com/evanw/esbuild).


### Simple esbuild wrapper

### Serves your site locally

### With live reload

### Using esbuild's watch

### And an ultralight server


### Install

```zsh
npm install esbuild-serve -D
```


### Use

`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"
}
}
```


### Includes

[esbuild](https://github.com/evanw/esbuild)   →   Extremely fast bundler and minifier.

[Serve 🍛](https://github.com/nativew/serve)   →   Ultralight http server with live reload.


### Check

[esbuild-plugin-pipe](https://github.com/nativew/esbuild-plugin-pipe)   →   Pipe esbuild plugins output.

[esbuild-plugin-babel](https://github.com/nativew/esbuild-plugin-babel)   →   Babel plugin for esbuild.

[esbuild-plugin-svg](https://github.com/nativew/esbuild-plugin-svg)   →   Svg files import plugin for esbuild.

[esbuild-plugin-postcss-literal](https://github.com/nativew/esbuild-plugin-postcss-literal)   →   PostCSS tagged template literals plugin for esbuild.