mirror of
https://github.com/osmarks/meme-search-engine.git
synced 2026-03-14 09:09:44 +00:00
- thumbnails/OCR off was broken - problematic video files caused segfaults (I blame ffmpeg for this)
26 lines
696 B
JavaScript
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))
|