diff options
Diffstat (limited to '')
-rw-r--r-- | assets/script/build.site.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/script/build.site.js b/assets/script/build.site.js new file mode 100644 index 0000000..fe3cd79 --- /dev/null +++ b/assets/script/build.site.js @@ -0,0 +1,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)); |