summaryrefslogtreecommitdiff
path: root/assets/script/build.alcoolog.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/script/build.alcoolog.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/script/build.alcoolog.js b/assets/script/build.alcoolog.js
new file mode 100644
index 0000000..fca8633
--- /dev/null
+++ b/assets/script/build.alcoolog.js
@@ -0,0 +1,11 @@
+const esbuild = require('esbuild');
+const { stimulusPlugin } = require('esbuild-plugin-stimulus');
+
+esbuild.build({
+ entryPoints: ['alcoolog.js'],
+ bundle: true,
+ outfile: '../priv/static/assets/alcoolog.js',
+ minify: true,
+ sourcemap: false,
+ plugins: [stimulusPlugin()],
+}).catch(() => process.exit(1));