0.0.5 • Published 3 years ago

esbpack v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

esbpack

Yet another bundler for websites with esbuild.

Installation

npm install --save-dev esbuild esbpack

Please install esbuild by your hands. esbpack doesn't install it automatically.

Example

// build.ts

import { esbpack } from 'esbpack';

esbpack({
  defineBuilds: build => {
    build({
      entryPoints: ['path/to/file.ts'],
      outfile: 'path/to/output.js',

      bundle: true,

      watch: true,
    });
  },
  devServer: {
    port: 8000,
    publicDir: '/',
    serveDir: './dist'
  }
});

License

MIT