1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use JavascriptSubtitlesOctopus if canvas and web workers are available.

This commit is contained in:
Andrew Mahone 2019-09-27 10:52:15 -04:00
parent c1d88b1540
commit 3f3e5e6da5
5 changed files with 62 additions and 6 deletions

View file

@ -10,9 +10,18 @@ module.exports = {
]
},
plugins: [
new CopyPlugin([{
from: "**/*",
to: "."
}])
new CopyPlugin([
{
from: "**/*",
to: "."
},
{
from: "../node_modules/libass-wasm/dist/subtitles-octopus-worker.*",
to: "JavascriptSubtitlesOctopus",
transformPath(targetPath, absolutePath) {
return Promise.resolve(path.join("JavascriptSubtitlesOctopus", path.basename(targetPath)));
}
}
])
]
};