esbuild-serve

1.0.1 • Public • Published

esbuild-serve

Serve with live reload for esbuild.


Simple esbuild wrapper

Serves your static site

With live reload

Using esbuild's watch

And a single dependency


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

Serve 🍛   →   Ultralight http server with live reload.


Check

esbuild-plugin-pipe   →   Pipe esbuild plugins output.

esbuild-plugin-babel   →   Babel plugin for esbuild.

esbuild-plugin-postcss-literal   →   PostCSS tagged template literals plugin for esbuild.


/esbuild-serve/

    Package Sidebar

    Install

    npm i esbuild-serve

    Weekly Downloads

    3,213

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    3.23 kB

    Total Files

    4

    Last publish

    Collaborators

    • antoineboulanger