Skip to content

YurySolovyov/esbuild-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published