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: 8 days ago
JSON representation
Serve with live reload for esbuild.
- Host: GitHub
- URL: https://github.com/nativew/esbuild-serve
- Owner: nativew
- License: isc
- Created: 2021-03-10T02:59:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T20:38:59.000Z (over 2 years ago)
- Last Synced: 2024-10-03T09:27:42.115Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 52
- Watchers: 2
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
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.