Skip to content

coqsenpate/grunt-esbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']);