diff options
author | href <href@random.sh> | 2021-09-02 08:06:50 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-02 08:06:50 +0200 |
commit | 1fbd63419355e8ddd482c3cb62641bed1366763b (patch) | |
tree | 370ce63fcf19f2fd8b1f5136fc19a317050ba0f3 /assets/script/build.alcoolog.js | |
parent | txt: don't search in files with dot, display them below in web (diff) |
Phoenix 1.6rc0 & Use proper Esbuild/Tailwind/Npm
Diffstat (limited to 'assets/script/build.alcoolog.js')
-rw-r--r-- | assets/script/build.alcoolog.js | 11 |
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)); |