Skip to content

kmalakoff/esbuild-plugin-dev-server

Repository files navigation

esbuild-plugin-dev-server

Dev server for esbuild with live reload and error overlay.

const esbuild = require('esbuild');
const devServer = require('esbuild-plugin-dev-server');

esbuild.build({
  entryPoints: ['./src/index.js'],
  bundle: true,
  outfile: './public/bundle.js',
  plugins: [devServer({ public: './public', port: 3000 })],
});

Examples

glyph