All Projects → nativew → esbuild-serve

nativew / esbuild-serve

Licence: ISC license
Serve with live reload for esbuild.

Programming Languages

javascript
184084 projects - #8 most used programming language

esbuild-serve

Serve with live reload for esbuild.


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.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].