grunt-esbuild
v1.0.1
Published
A grunt plugin to run esbuild.
Downloads
395
Readme
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']);