1
0
mirror of https://github.com/osmarks/meme-search-engine.git synced 2026-03-14 09:09:44 +00:00
Files
meme-search-engine/clipfront2/src/build.js
osmarks 747058e254 misc fixes
- thumbnails/OCR off was broken
- problematic video files caused segfaults (I blame ffmpeg for this)
2024-05-30 19:05:54 +01:00

26 lines
696 B
JavaScript

const esbuild = require("esbuild")
const sveltePlugin = require("esbuild-svelte")
const path = require("path")
const { sass } = require("svelte-preprocess-sass")
esbuild
.build({
entryPoints: [path.join(__dirname, "app.js")],
bundle: true,
minify: true,
outfile: path.join(__dirname, "../static/app.js"),
plugins: [sveltePlugin({
preprocess: {
style: sass()
}
})],
loader: {
".woff": "file",
".woff2": "file",
".ttf": "file"
},
logLevel: "info",
watch: process.argv.join(" ").includes("watch")
})
.catch(() => process.exit(1))