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

27 lines
769 B
JavaScript

const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
context: path.resolve(__dirname, "src"),
entry: "./bundle.js",
resolve: {
modules: [
path.resolve(__dirname, "node_modules")
]
},
plugins: [
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)));
}
}
])
]
};