summaryrefslogtreecommitdiff
path: root/assets/script/build.site.js
blob: fe3cd796d44ffe479756d4c2205d34c9e88bde41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
const esbuild = require('esbuild');
const { stimulusPlugin } = require('esbuild-plugin-stimulus');

esbuild.build({
  entryPoints: ['site.js'],
  bundle: true,
  outfile: '../priv/static/assets/site.js',
  minify: true,
  sourcemap: false,
  plugins: [stimulusPlugin()],
}).catch(() => process.exit(1));