Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: fc4da91ec74b1565ef3c99110bd7a34197eb23ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
console.log('Starting server.');

require('esbuild-server')
  .createServer(
    {
      bundle: true,
      entryPoints: ['src/index.js'],
    },
    {
      static: 'public'
    }
  )
  .start();