Add a readme, make it easier to install

This commit is contained in:
2026-07-13 13:10:10 +02:00
parent 3c9e850f31
commit 14dca7405e
8 changed files with 406 additions and 78 deletions
+1 -23
View File
@@ -55,15 +55,6 @@ module.exports = {
test: /\.(png|jpe?g|gif|svg)$/i,
type: "asset/resource",
},
{
// Disable webpack's `new URL(..., import.meta.url)` asset emission for
// jassub. jassub references a `./default.woff2` it does not ship (which
// would fail the build) and its wasm URLs; we self-host the wasm + font
// and pass them via `subtitleAssets` instead. The worker itself is still
// bundled (that goes through `new Worker(new URL(...))`, not this rule).
test: /[\\/]jassub[\\/]/,
parser: { url: false },
},
],
},
plugins: [
@@ -82,19 +73,6 @@ module.exports = {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "credentialless",
},
// Host the ASS/PGS subtitle renderer assets under `/jassub` and `/pgs`.
// jassub/libpgs ship the worker + wasm; `public/jassub/default.woff2`
// provides the fallback font jassub does not bundle.
static: [
{ directory: path.resolve(appDirectory, "public") },
{
directory: path.resolve(rootDirectory, "node_modules/jassub/dist/wasm"),
publicPath: "/jassub",
},
{
directory: path.resolve(rootDirectory, "node_modules/libpgs/dist"),
publicPath: "/pgs",
},
],
static: [{ directory: path.resolve(appDirectory, "public") }],
},
};