const esbuild = require('esbuild'); const { stimulusPlugin } = require('esbuild-plugin-stimulus'); //site.js --bundle --sourcemap=inline --watch --outfile=assets/site.js esbuild.build({ entryPoints: ['site.js'], bundle: true, outfile: '../priv/static/assets/site.js', minify: true, sourcemap: "inline", watch: true, plugins: [stimulusPlugin()], }).catch(() => process.exit(1));