Socket
Socket
Sign inDemoInstall

esbuild-serve

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    esbuild-serve

Serve with live reload for esbuild.


Version published
Weekly downloads
3.6K
decreased by-10.59%
Maintainers
1
Install size
7.27 MB
Created
Weekly downloads
 

Readme

Source

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.


Keywords

FAQs

Last updated on 13 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc