Use JavascriptSubtitlesOctopus if canvas and web workers are available.
This commit is contained in:
parent
c1d88b1540
commit
3f3e5e6da5
5 changed files with 62 additions and 6 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
])
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue