Noble Programming Mantra

    esbuild-reloader

    0.4.1 • Public • Published

    esbuild-reloader

    Plugin that reloads the page on every build.

    Installing

    npm install --save-dev esbuild-reloader
    
    # or
    
    yarn add -D esbuild-reloader

    Configuration

    This assumes watch mode and does nothing for regular builds:

    const reloader = require('esbuild-reloader');
    
    esbuild.build({
      // ...
      watch: true,
      // ...
      plugins: [
        // ...
        reloader(),
      ],
    });

    Options

    {
      host: String,               // default 'localhost'
      port: Number,               // default 8001
      reconnectTimeout: Number,   // default 5000
      retries: Number | 'always', // default 10
    }

    Install

    npm i esbuild-reloader

    DownloadsWeekly Downloads

    4

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    7.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • yurysolovyov