@energypatrikhu/esbuild-wrapper

0.0.10 • Public • Published

esbuild-wrapper

esbuild-wrapper is a small config based wrapper for esbuild

Warning

This package is not well tested, and may not work as expected, use at your own risk, the package was tested on Windows and Linux, but may not work on other platforms

Usage

  1. Install the package

    npm install -D @energypatrikhu/esbuild-wrapper
    
  2. Add the following scripts to your package.json

    {
      "scripts": {
        "build": "esbuild-wrapper"
      }
    }
  3. Start the script

    this creates an example configuration file, that later can be modified to your needs

    npm run build
    
  4. After that is done, you have to start esbuild-wrapper again

    now the script minifies and bundles the script to the desired location

    npm run build
    

Configuration

  • inputFiles: the files to bundle
  • outDir: the directory to output the bundled files
  • options: the options for esbuild

Readme

Keywords

none

Package Sidebar

Install

npm i @energypatrikhu/esbuild-wrapper

Weekly Downloads

3

Version

0.0.10

License

MIT

Unpacked Size

5.62 kB

Total Files

4

Last publish

Collaborators

  • energypatrikhu