esbuild-flickserve
v1.0.1
Published
Serve with live reload for esbuild.
Downloads
1
Maintainers
Readme
esbuild-serve
flickserve with live reload for esbuild.
This is fork of nativew/esbuild-serve. I missed fallback option usefull for apps with react router
Simple esbuild wrapper
Serves your site locally
With live reload
Using esbuild's watch
And an ultralight server
Install
npm install esbuild-serve -D
Use
esbuild.config.js
import esbuildServe from 'esbuild-serve';
esbuildServe(
{
// esbuild options
},
{
// serve options (optional)
port: 7000,
root: '.'
}
);
package.json
{
"type": "module",
"scripts": {
"start": "node esbuild.config.js -w",
"build": "node esbuild.config.js"
}
}
Includes
esbuild → Extremely fast bundler and minifier.
Serve 🍛 → Ultralight http server with live reload.
Check
esbuild-plugin-pipe → Pipe esbuild plugins output.
esbuild-plugin-babel → Babel plugin for esbuild.
esbuild-plugin-svg → Svg files import plugin for esbuild.
esbuild-plugin-postcss-literal → PostCSS tagged template literals plugin for esbuild.