1.0.1 • Published 3 months ago

grunt-esbuild v1.0.1

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

grunt-esbuild

Runs esbuild in grunt.

This task directly sends the provided config to the build function of esbuild (which you must provide).

Install

$ npm install --save-dev esbuild grunt-esbuild

Usage

require('load-grunt-tasks')(grunt);

grunt.initConfig({
  esbuild: {
    options: {
      buildFunction: require('esbuild').build
    },
    dist: {
      entryPoints: ['src/main.js'],
      bundle: true,
      outfile: 'dist/main.js',
    }
  }
});

grunt.registerTask('default', ['esbuild']);
1.0.1

3 months ago